[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Return result of last file IO operation
Source position: systemh.inc line 1416
function IOResult: Word; |
IOresult contains the result of any input/output call, when the {\$i-} compiler directive is active, disabling IO checking. When the flag is read, it is reset to zero. If IOresult is zero, the operation completed successfully. If non-zero, an error occurred. The following errors can occur:
dos errors :
I/O errors :
Fatal errors :
None.
Program Example35; { Program to demonstrate the IOResult function. } Var F : text; begin Assign (f,paramstr(1)); {$i-} Reset (f); {$i+} If IOresult<>0 then writeln ('File ',paramstr(1),' doesn''t exist') else writeln ('File ',paramstr(1),' exists'); end.