
PT-Basic Programming Manual Ver. 1.00 81/143
File specified does not exist.
New position is beyond
end-of-file.
To get or change file length of a file.
FILESIZE% = EXT # FILEID%
EXT # FILEID% = SIZE%
FILESIZE%=EXT # FILEID%
PRINT FILESIZE%
…
EXT # FILEID% = 20
FILESIZE% is an integer variable to be returned the file
length.
SIZE% is an integer variable indicating the length to be
changed of the file.
FILEID% is an integer variable 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.
To get the file error code.
A%=GET_FILE_ERROR
PRINT “File error code:”,A%
A% is an integer to be assigned to the result. If there is no
error, it returns 0. If it returns a value other than 0, it‟s file
error code.
Comentários a estes Manuais