Delphi / Object Pascal · Exception
What does EInOutError Exception mean in Delphi / Object Pascal?
The general file I/O exception, raised when a $I+ (I/O checking on) file operation such as Reset, Rewrite, Read, Write, or Close on a legacy Pascal file variable fails - file not found, disk full, permission denied, or a device error.
The general file I/O exception, raised when a $I+ (I/O checking on) file operation such as Reset, Rewrite, Read, Write, or Close on a legacy Pascal file variable fails - file not found, disk full, permission denied, or a device error.
Check file existence and share/permission state before opening, wrap file operations in try/except or check IOResult under $I-, and prefer TFileStream/TStreamReader for new code since they raise more specific, descriptive exceptions than the legacy file-I/O routines.