NAME

ferror - returns whether there is an error condition on a file

SYNOPSIS

file.ferror()

DESCRIPTION

The error indicator for a File may be tested with the ferror() intrinsic method. The error indicator can be cleared with the clearerr() intrinsic method.

RETURN VALUE

An Int corresponding to the underlying runtime implementation of the file error indicator. A zero value indicates no error indicator has been set.

ERRORS

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

EXAMPLE

    if (file.ferror()) {
        file.clearerr();
    }

SEE ALSO

feof
clearerr