Network Information Services - Table 6
- ~f [filename]
close any open I/O file and then create a new I/O file
named 'filename'. To close the current I/O file, give no
'filename'. The query status is set to 'y' if the file
open was successful. Also, 'filename' can be one of the
Text Control Sequence string variables (~0-~9).
- ~o [filename]
close any open I/O file and then open an old I/O file named
'filename'. To close the current I/O file, give no
'filename'. The query status is set to 'y' if the file
open was successful. Also, 'filename' can be one of the
Text Control Sequence string variables (~0-~9).
- ~s
seek to beginning of current I/O file.
- ~se
seek to end of current I/O file.
- ~sp num
seek to the position held in integer variable 'num'.
- ~e [lab]
test for an end-of-file condition on the current I/O
file. This command sets the query status for use with
the "~y" and "~n" control lines. If the optional label
'lab' is given and the I/O file is at the end-of-file,
then goto the label 'lab'. The named label can be
anywhere in the script file.
- ~w textline
write the 'textline' to the current I/O file. The same
special characters that apply to Text Lines apply to
this 'textline', i.e. you can use the same control
sequences.
- ~r num
read the next line in the current I/O file into the
variable string number 'num'.
Table 6 - Data File Control Lines
Return to the NETWORK
INFORMATION SERVICES document.