PrintFile Example

 

The following example prints the file 途eadme.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