eof()

streamにあるファイルが最後に達したときTrueを返す。

書式:
variable = Eof( stream )

stream オープンコマンドで指定された番号

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