PrintFile Example

 

The following example prints the file ôreadme.txtö using the default editor for text files (usually Notepad).

 

Sub Main

 

 'This script uses the AutoMateÖ system constant %AMDIR%

 'but we could have used a literal path such as C:\test.txt

  

 Action.PrintFile("%AMDIR%\readme.txt")

 

End Sub