In our previous episode, Gerard N/A said: > Could it be that the length indicator bytes of the string are written > to the stream?
I think his result is a shortstring, and that gets binarily written. > > Maybe TFileStream is not suited for plain text output, and I should > > rather use the File type instead? > Did you try writing with if length(atext)>0 then >WriteBuffer(Atext[1], length(AText)? _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal