[fpc-pascal] how to test if a file is open to write?

Bernd prof7bit at googlemail.com
Fri Jul 15 12:55:21 CEST 2011


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.

Bernd



More information about the fpc-pascal mailing list