[fpc-pascal] how to test if a file is open to write?
Sven Barth
pascaldragon at googlemail.com
Fri Jul 15 13:58:24 CEST 2011
Am 15.07.2011 12:55, schrieb Bernd:
> 2011/7/15 Michael Müller<mueller_michael at alice-dsl.net>:
>> The subject indicates that you look for a solution for normal files but your example indicates that you what to detect the console. So I add my solutions for both. [...]
>
> This is helpful information! Normally I would try do do file IO with
> streams. Only the console problem made me realize again that it seems
> I have completely forgotten everything I ever knew about the File and
> Text types and their internal mechanisms.
Hmm... I don't know whether I understand your intension correctly, but
do you know about the unit "IOStream"?
See here: http://www.freepascal.org/docs-html/fcl/iostream/index.html
Regards,
Sven
More information about the fpc-pascal
mailing list