{$I-} - Turn off run time io error checking

{$I+} - turn it on again

IOResult - checks to see if an IO error happened.

Go check the help