[fpc-pascal]TStream.WriteAnsiString

Brian Grainger granam at shaw.ca
Wed Aug 21 14:02:40 CEST 2002


At 09:36 AM 8/21/02 +0200, you wrote:

>The behaviour is as intended. The WriteByte/WriteWord/WriteString etc. all
>write binary data to the stream. If you want to write text data, then
>you should write your own routines.

I can understand that where the native data type is binary, but it seems 
odd that WriteString and WriteAnsiString also write binary data. Basically 
it means that for writing text data, which one would assume was happening 
with these routines, they are unusable.

Perhaps some sort of comment in the source code would be helpful, just to 
note that WriteString and WriteAnsiString do not write text data.

Regards,
Brian





More information about the fpc-pascal mailing list