eof()
Returns
true
if the end of file stream has been reached.
Syntax:
variable
= Eof(
stream
)
stream
is a file previously opened by the open command.
Example:
' Read until the end of file
open "myfile.txt" for input as #1
while not
eof( 1 )
line input #1, text
print text
wend
close #1