$FUNCNAME$
  FERROR()
$CATEGORY$
  FILE/IO,SYSTEM,DATABASE
$SUMMARY$
   Test for errors after a binary file operation
$LANG_RU$
        .
$SYNTAX$
     FERROR() --> nErrorCode
$LANG_RU$
     FERROR() -->  
$RETURNS$
     FERROR() returns the DOS error from the last file operation as an
     integer numeric value.  If there is no error, FERROR() returns zero.
$LANG_RU$
     FERROR()    DOS    
         .    , FERROR() 
     0.
$DESCRIPTION$
     FERROR() is a low-level file function that indicates a DOS error after a
     file function is used.  These functions include FCLOSE(), FCREATE(),
     FERASE(), FOPEN(), FREAD(), FREADSTR(), and FRENAME().  FERROR() retains
     its value until the next execution of a file function.

     Warning!  This function allows low-level access to DOS files and
     devices.  It should be used with extreme care and requires a thorough
     knowledge of the operating system.
$LANG_RU$
     FERROR()      . 
         DOS   - 
       .    : FCLOSE(),
     FCREATE(), FERASE(), FOPEN(), FREAD(), FREADSTR()  FRENAME().
      FERROR()      
      .

     :
             
       DOS.      
         .
$EXAMPLES$
       This example tests FERROR() after the creation of a binary
	file and displays an error message if the create fails:

	#include "Fileio.ch"
	//
	nHandle := FCREATE("Temp.txt", FC_NORMAL)
	IF FERROR() != 0
	   ? "Cannot create file, DOS error ", FERROR()
	ENDIF
$LANG_RU$
         ,     
       FERROR()   :

       #include "Fileio.ch"
       //
       nHandle = FCREATE("Temp.txt", FC_NORMAL)
       IF FERROR() != 0
	  ? "  ,  DOS: ", FERROR()
       ENDIF
$SEEALSO$
  DOSERROR(),FCLOSE(),FCREATE(),FERASE(),FOPEN(),FWRITE()
$END$
