EasyManuals Logo

Tektronix KEITHLEY 2600B Series User Manual

Tektronix KEITHLEY 2600B Series
834 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #440 background imageLoading...
Page #440 background image
Series 2600B System SourceMeter® instrument Reference Manual Section 9: TSP command reference
2600BS-901-01 Rev. F/August 2021 9-119
Details
The newfile path may be absolute or relative to the current working directory.
When using this function from a remote TSP-Link
®
node, this command does not accept a file
descriptor and does not return a value.
If the function fails, an error message is returned.
Also see
io.open() (on page 9-119)
io.output() (on page 9-120)
io.open()
This function opens a file for later reference.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
No
Usage
fileVar, errorMsg = io.open("path")
fileVar, errorMsg = io.open("path", "mode")
fileVar
The descriptor of the opened file
errorMsg
Indicates whether an error was encountered while processing the function
path
The path of the file to open
mode
A string representing the intended access mode ("r" = read, "w" = write, and "a" =
append)
Details
The path to the file to open may be absolute or relative to the current working directory. If you
successfully open the file, errorMsg is nil and fileVar has the descriptor used to access the file.
If an error is encountered, the command returns nil for fileVar and an error string.
Example
testFile, testError = io.open("testfile.txt", "w")
if testError == nil 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.close() (on page 9-117)

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Tektronix KEITHLEY 2600B Series and is the answer not in the manual?

Tektronix KEITHLEY 2600B Series Specifications

General IconGeneral
BrandTektronix
ModelKEITHLEY 2600B Series
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals