SHOWFILE

Displays a text file to the screen using the OpticStudio file viewer.

Syntax:

SHOWFILE filename, saveflag
 

Discussion:

The filename must be a valid file name. The file must be a text file (as would be created by OUTPUT and PRINT commands in ZPL) and must be in the current folder. Once the file is displayed, it may be scrolled up and down and printed like any other text file. The ability to scroll and print the data is the primary advantage of using OUTPUT and SHOWFILE instead of PRINT commands. SHOWFILE also closes the file if no CLOSE command has been executed. If the saveflag is zero or omitted, then the file is erased when the window is closed. if saveflag is any value other than zero, then the file remains even after the window is closed.

Example:

OUTPUT "test.txt"
PRINT "Print this to a file."
SHOWFILE "test.txt"
 

Related Keywords:

OPEN, OUTPUT, CLOSE, PRINT, PRINTFILE

Next: