7: TSP command reference Series 2600B System SourceMeter® Instrument
7-120 2600BS-901-01 Rev. C / August 2016
Details
The path of the file to open may be absolute or relative to the current working directory.
When accessed from a remote node using the TSP-Link network, this command does not accept a
file descriptor parameter and does not return a value.
If the function fails, an error message is returned.
Also see
io.input() (on page 7-118)
io.open() (on page 7-119)
io.read()
This function reads data from the default input file.
Type TSP-Link accessible Affected by Where saved Default value
Usage
data1 = io.read()
data1 = io.read(format1)
data1, data2 = io.read(format1, format2)
data1, ..., dataN = io.read(format1, ..., formatN)
The data read from the file
The data read from the file
The data read from the file; the number of return values matches the number
of format values given
A string or number indicating the type of data to be read
A string or number indicating the type of data to be read
A string or number indicating the type of data to be read
One or more entries (or values) separated by commas