RETURNS 1 IF THE CURRENT POSITION IS BEYOND THE LAST CHARACTER OF THE TEXT FILE NUMBER N, 0 OTHERWISE
ACTION
The fonction FILE_EOF(N) returns 1 if the current file position is beyond the last character of the text file number N or if the file is empty, 0 otherwise.
SYNTAX:
Result=FILE_EOF(N)
USE ERROR EXAMPLE
dim a$
rem open a text file for reading
file_open_read 1,"my_file.txt"
rem print all its lines
while file_eof(1) <> 1
file_readln 1,a$:print a$
end_while
rem close it
file_close 1
FILE_EOF()
FILE_EOF(N)
SEE ALSO
FILE_CLOSE
FILE_OPEN_APPEND
FILE_OPEN_READ
FILE_OPEN_WRITE
FILE_READ
FILE_READBUF
FILE_READLN
FILE_READLN$()
FILE_WRITE
FILE_WRITEBUF
FILE_WRITELN