xHarbour Reference Documentation > Function Reference |
Retrieves the error code of the last low-level file operation.
FError() --> nErrorCode
The function returns the error code of the last low-level file operation as a numeric value. If the last low-level file operation is successful, the return value is zero.
Low-level file operations work with file handles and include the functions FClose(), FCreate() , FErase(), FOpen(), FRead(), FReadStr(), FRename(), FSeek() and FWrite(). If any file operation performed by these functions fails, the error code obtained from the disk operating system is returned from function FError(). The function retains this value until a successful low-level file operation completes.
Note: error codes for low-level file functions are a subset of error codes listed under DosError(). See DosError() for a description of the meaning of error codes.
See also: | DosError(), FClose(), FCreate(), FErase(), FOpen(), FRead(), FReadStr(), FRename(), FSeek(), FWrite(), HB_OsError() |
Category: | File functions , Low level file functions |
Source: | rtl\philes.c |
LIB: | xhb.lib |
DLL: | xhbdll.dll |
// See the example for FCreate()
http://www.xHarbour.com