Previous: $D: Debug Information Switch To the Table of Content Next: $I: Include File Directive

- 3.2.8 -
Compiler Directives
Switch and Parameter Directives

$I: I/O Checking Switch

Targets: MS-DOS, OS/2, Win32


Compiler directives

Enables or disables the automatic code generation that checks the result of a call to an I/O procedure.

Syntax:
  {$I+} or {$I-}
Default:
  {$I+}
Remarks:
If an I/O procedure returns a non-zero I/O result when the $I switch is on, the program terminates, displaying a run-time error message.

When the $I switch is off, you should use the IOResult function to check for I/O errors.


Previous: $D: Debug Information Switch To the Table of Content Next: $I: Include File Directive
$D: Debug Information Switch Table of Content $I: Include File Directive

- 3.2.8 -