NAME

feof - test a file's end-of-file indicator

SYNOPSIS

file.feof()

DESCRIPTION

The end-of-file indicator for a File may be tested with the feof() intrinsic method. The end-of-file indicator can be cleared with the clearerr() intrinsic method.

RETURN VALUE

Returns true if the end-of-file indicator is set, false otherwise.

ERRORS

ArgCheck if arguments are specified
TypeCheck if file is not a File
AccessCheck if file is closed

EXAMPLE

    while (!io::Input.feof()) {
        var ch = getchar();
        if (ch != io::EOF) putchar(ch);
    }

SEE ALSO

ferror
clearerr