EOF

Top  Previous  Next

Syntax

INT = EOF(file)

Description

Tests an open file for the end of file condition.

Parameters

file - A FILE or BFILE variable successfully initialized with the OPENFILE command.

Return value

1 if the EOF has been reached or 0 if there is still data available to be read.

Remarks

See Also: OPENFILE, CLOSEFILE, READ, WRITE

Example usage

DO
    READ file1,ln
UNTIL EOF(file1)