FANDOM


Returns an integer value of one if the file specified by the file number has no more data to read, otherwise zero is returned.

Syntax
Return Integer=FILE END(File Number)
Parameters
File Number

Integer
The open file number to use

Returns

Will return an integer value of one if the file specified by the file number has no more data to read, otherwise zero is returned

Example Code
cls

open to read 1,"data.dat"

if file open(1)=1

while file end(1)=0

read string 1,a$

print "string= "+a$


endwhile

endif
close file 1

do

loop

end
Community content is available under CC-BY-SA unless otherwise noted.