Series 2600B System SourceMeter® instrument Reference Manual Section 9: TSP command reference
2600BS-901-01 Rev. F/August 2021 9-117
Also see
ConfigPulseIMeasureV() (on page 9-37)
ConfigPulseIMeasureVSweepLin() (on page 9-39)
ConfigPulseIMeasureVSweepLog() (on page 9-41)
ConfigPulseVMeasureI() (on page 9-43)
ConfigPulseVMeasureISweepLin() (on page 9-45)
ConfigPulseVMeasureISweepLog() (on page 9-47)
io.close()
This function closes a file.
Usage
io.close()
io.close(file)
The descriptor of the file to close
Details
If a file is not specified, the default output file closes.
Only io.close(), used without specifying a parameter, can be accessed from a remote node.
Example
testFile, testError = io.open("testfile.txt", "w")
if nil == testError then
testFile:write("This is my test file")
io.close(testFile)
end
Opens file testfile.txt for writing. If no errors were found while opening, writes "This is my test file"
and closes the file.
Also see
io.open() (on page 9-119)