Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns a number corresponding to the most recent low-level file function error.
FERROR( )
Return Values
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 |
See Also
FCHSIZE( ) | FCLOSE( ) | FCREATE( ) | FEOF( ) | FFLUSH( ) | FGETS( ) | FOPEN( ) | FPUTS( ) | FREAD( ) | FSEEK( ) | FWRITE( )