Liberty BASIC Help Online |
EOF( #h )
Description:
This function is used to determine when reading from a sequential file whether the end of the file has been reached. If so, -1 is returned, otherwise 0 is returned.
Usage:
open "testfile" for input as #1
if eof(#1) < 0 then [skipIt]
[loop]
input #1, text$
print text$
if eof(#1) = 0 then [loop]
[skipIt]
close #1
Copyright (C) 2003 Shoptalk Systems
Liberty BASIC - http://www.libertybasic.com/