
PT-Basic Programming Manual Ver. 1.00 80/143
To check if file pointer of a file reaches end of file.
WHILE (EOF#FILEID% <> -1)
Str$=GET$ # FILEID%
PRINT Str$
WEND
E% is an integer to be assigned to the result.
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 or move the file pointer position of a file.
TELLPTR% = PTR # FILEID%
PTR # FILEID% = NPTR%
...
TELLPTR%=PTR # FILEID%
…
PTR # FILEID% = 40
TELLPTR % is an integer variable to be assigned to the
result.
TELLPTR% = PTR # FILEID%, to get the file pointer
position of a file.
NPTR % is an integer variable indicating the offset bytes
address been specified.
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:
Kommentare zu diesen Handbüchern