[fpc-pascal] Creating text files with TFileStream
Gerard N/A
gerardusmercator at gmail.com
Fri Oct 23 12:06:45 CEST 2009
Hi,
On Fri, Oct 23, 2009 at 11:58 AM, Graeme Geldenhuys
<graemeg.lists at gmail.com> wrote:
> where AOut is the TFileStream. But if I view the output file, it
> "mostly" looks like text. Except that on each line in starts with some
> random 2-3 characters.
>
Could it be that the length indicator bytes of the string are written
to the stream?
> Maybe TFileStream is not suited for plain text output, and I should
> rather use the File type instead?
>
Did you try writing with WriteBuffer(Atext[1], length(AText)?
Regards,
Gerard
More information about the fpc-pascal
mailing list