[fpc-pascal] Creating text files with TFileStream

Vincent Snijders vsnijders at vodafonevast.nl
Fri Oct 23 12:42:30 CEST 2009


Graeme Geldenhuys schreef:
> 2009/10/23 Vincent Snijders <vsnijders at vodafonevast.nl>:
>> Otherwise you cannot read it back. :-)
> 
> But using .WriteAnsiString() doesn't create a plain text file, so the
> result is useless. 

Is useless for your current use, I admit. Don't use it to create a plain text file.

But if you want write ansistrings in a stream and read them back, you need to know 
how much to read until the end.

Vincent



More information about the fpc-pascal mailing list