[fpc-pascal]File errors

Peter Vreman peter at freepascal.org
Mon May 5 11:35:14 CEST 2003

> Hi,
> How do you check for file errors such as "Disk Full" before attempting
> to write out a file to disk ?
> You can easily check if a file exists with the fileExists function...
> Can something similar be done for other file errors ?

You can check with diskfree() how much space is left on a disk


More information about the fpc-pascal mailing list