[fpc-pascal] Where does Write(Ln) actually write to?

Tomas Hajny XHajT03 at mbox.vol.cz
Wed May 13 09:35:59 CEST 2009


On Wed, May 13, 2009 07:07, leledumbo wrote:
>
> It works... but only for the first call, after that IOResult gives 103.
> Does
> rtl closes stdout handle after every write or what?

No, certainly not. As suggested yesterday, you need to implement some of
the other Do_* functions, at least Do_Open, otherwise some of the fields
in the TextRec/FileRec are not initialized properly (e.g. the input/output
mode). Just have a look at one of the existing implementations.

Tomas





More information about the fpc-pascal mailing list