
PT-Basic Programming Manual Ver. 1.00 77/143
To open (r+) a file and get the file for further processing.
FilePath$="C:\DATA\Test.DAT"
fileID%=OPENUP FilePath $
F% is sn integer variable to be assigned to the result.
Open successfully. It returns the file.
filename$ is a string variable, indicating the file path.
In case of error, open will return an integer value of 0. You
can use the GET_FILE_ERROR command to get the file
error code. Possible error codes and their interpretation are
listed below:
Filename is a NULL string.
Can't create file because the
maximum number of files
allowed in the system is
exceeded.
File path error.
F% is an integer indicating the file handle.
You can use the GET_FILE_ERROR command to get the
file error code. Possible error codes and their interpretation
are listed below:
File specified does not exist.
Commenti su questo manuale