PS TEXT FORMAT Reference Manual
Introduction to TFORM
3–32 11387 Tandem Computers Incorporated
Examples:
\FILE OPEN MYTEXT WRITE APPEND
\FILE READ CLIENTS Title, First_Name, Last_Name, Address
\FILE WRITE INDEX "FILE Command, \(sys_pagenumber\)"
\FILE WRITE * "I can send this line verbatim to the printer."
How to Use FILE
The different options of the FILE command are described in the following
paragraphs.
FILE OPEN Options
FILE OPEN opens a file for either reading or writing. You use this
command to tell TFORM to open the auxiliary file you name so that
you can proceed to READ or WRITE to that file.
FILE OPEN
filename
READ
This command opens the named file as a read-only file. If four read
files are already open, TFORM issues an error message and ignores
the command to open any additional files.
FILE OPEN
filename
WRITE APPEND
This command opens the named file as a write-only file. If the
doesn’t exist, TFORM creates it. If it does exist, TFORM opens it,
moves to the last line of the file, and adds new records you write to
the end.
FILE OPEN
filename
WRITE with no modifier has the same effect
as FILE OPEN
filename
WRITE APPEND.