[fpc-pascal] Creating text files with TFileStream
    Marco van de Voort 
    marcov at stack.nl
       
    Fri Oct 23 12:14:28 CEST 2009
    
    
  
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)?
    
    
More information about the fpc-pascal
mailing list