User manual
Section 9: Files Series 3700 System Switch/Multimeter Reference Manual
9-4 3700S-901-01 Rev. C / July 2008
io.type (on page 9-14) (supported on the local node only when the Series
3700 is a master)
The following standard I/O commands are not supported at this time:
file:lines
file:setvbuf
io.lines
io.popen
io.tmpfile
Script examples
The following script will open three different files to help illustrate the differences
between the io commands and file descriptor commands. After opening the
files, the script designates each one as the default output file (using the
io.output command). While each file is the default for file writes (using the
io.write command), the script also uses the file descriptor from the io.open
to write to the file (file:write command).
After all files are closed (using the io.close command), the script will open the
files again for reading. Two files are read by:
Designating the file the default input file (using the io.input command)
Being the default read contents of file (using the io.read command)
The third file is read by using the file descriptor from the open (file:read
command). After reading all files, they are closed using the file descriptor and
close option (file:close command).