lang • eof


Result = Eof ( [ Stream AS Stream ] ) AS Boolean

Returns TRUE if we are at the end of the stream.

If Stream is not specified, then the standard input is used.

See LINE INPUT for an example.

The behaviour of Eof() depends on the stream blocking mode:

Consequently, for non-file streams (pipes, processes, sockets...) in blocking mode, end of file will be reached when the other end of the stream is closed.

See also