6.1.2.5.1.3 EOF

Function Declaration

 Function EOF(FileNumber As Integer) As Boolean 

Parameter

Description

FileNumber

Any data value that is Let-coercible to declared type Integer and that is a valid file number (section 5.4.5).

Runtime Semantics.

§ Returns a Boolean data value indicating whether or not the current file-pointer-position (section 5.4.5) is at the end of a file that has been opened for Random or sequential Input.

§ The EOF function returns False until the file-pointer-position is at the end of the file. With files opened for Random or Binary access, EOF returns False until the last executed Get statement is unable to read an entire record.

§ Files opened for Output, EOF returns True.