Hi everybody,
I am trying to understand how to use {$I-} , {$I+} , and ioResult to check IO errors with text files. Il do not understand the following points.
It seems that {$I-} is not enough to disable the automatic handling of IO errors. You also have to actually write a call to ioResult in the program. Seems to me that this is not a correct behaviour. Moreover I do not understand how it is simply possible to have such a behaviour without using a kind of static analysis of the code. I join some files to show the problem.
Thanks for your sharing your knowledge of {$I-} , {$I+} , and ioResult.
Baudouin
this program reads the file "toto.txt" without calling ioResult.
the same program with calls to ioResult
the file that is read by the program
execution of lireToto compiled with {$I-}
execution of lireToto compiled with {$I+}
execution of lireToto_ioResult compiled with {$I-}
execution of lireToto_ioResult compiled with {$I+}