[fpc-pascal] TStringStream.DataString returns garbage?
Marco van de Voort
marcov at stack.nl
Fri Feb 3 09:26:38 CET 2012
In our previous episode, Jorge Aldo G. de F. Junior said:
> I would vote for a new function on all stream types to allow writing
> strings in the expected way
There is no default way to stream a string.
On textfiles you only stream contents, on binary files usually a length
field (which can be 1,2,4 bytes depending on format) + contents.
More information about the fpc-pascal
mailing list