[fpc-pascal] Why opening a file for write fails in fpc 2.6?
Jonas Maebe
jonas.maebe at elis.ugent.be
Thu Nov 1 11:58:20 CET 2012
On 01 Nov 2012, at 11:53, Giuliano Colla wrote:
> Il 01/11/2012 11:43, Jonas Maebe ha scritto:
>> On 01 Nov 2012, at 11:40, Giuliano Colla wrote:
>>
>>> Reset(MyFile); <==== Raises an Exception: EInOutError File not found
>>> end;
>> That depends on the state of the {$i+/-} directive.
>>
> Which doesn't affect FileOpen behavior.
No, because {$i+/-} dates back to Turbo Pascal and is specifically tied to the "standard" I/O operations. The Delphi-ones only support result-based checking. It's a completely new API with its own convention.
Jonas
More information about the fpc-pascal
mailing list