FERROR( ) Function

See Also

Returns a number corresponding to the most recent low-level file function error.

Syntax

FERROR( )

Returns

Numeric

Remarks

FERROR( ) returns 0 if a low-level file function executes successfully. A positive value is returned if a function doesn't execute successfully. The following table lists each error number returned by FERROR( ) and the cause of the error.

Error number Error cause
2 File not found
4 Too many files open (out of file handles)
5 Access denied
6 Invalid file handle given
8 Out of memory
25 Seek error (can't seek before the start of a file)
29 Disk full
31 Error opening file