- Introduction
- License
- History
- Compilation & Hosting
- Configuration File
- Modules:
- FAQ
- Links
- Credits
|
Declaration:
-
function file_error: string;
Description:
-
This function can be used to get last I/O error message.
Returns:
-
String error message, the list of such messages is:
'File not found';
'Path not found';
'Too many open files';
'Access denied';
'Invalid file handle';
'Invalid file-access mode';
'Invalid disk number';
'Cannot remove current directory';
'Cannot rename across volumes';
'Error when reading from disk';
'Error when writing to disk';
'File not assigned';
'File not open';
'File not opened for input';
'File not opened for output';
'Invalid number';
'Disk is write protected';
'Unknown device';
'Drive not ready';
'Unknown command';
'CRC check failed';
'Invalid drive specified';
'Seek error on disk';
'Invalid media type';
'Sector not found';
'Printer out of paper';
'Error when writing to device';
'Error when reading from device';
'Hardware failure';
Usage:
-
if ioresult <> 0 then writeln(file_error);
|