be carefull doing stream.write. Some streams uses a CString pointer, so any null byte (byte zero) could corrupt the output data. This doesn't happens with WriteBytes. And this doesn't happens with all streams, just text oriented streams (such as standardiostream). And there's one thing else, your bytes, when using write, all characters greater than 127 will be written in UTF8 format (because this is the default and most compatible cross platform format in BlitzMax) so this conversion to UTF8 will make bytes greater than 127 be represented in a 16 bit format (so the lenght of the streamed data could be greater than the original, and some BYES will be changed unless they're currently representin an UTF8 value).
So, as a suggestion, I recomand you to use WRITE for TEXT, and WRITEBYTES for Bytes.
:)
It was only a suggestion...
So, as a suggestion, I recomand you to use WRITE for TEXT, and WRITEBYTES for Bytes.
:)
It was only a suggestion...