WriteBytes ?

BlitzMax Forums/BlitzMax Programming/WriteBytes ?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Gey, notice that This may only happen when using TEXT oriented STREAMS. And I'm not sure if the UTF8 conversion happens when the stream contens is sent to the standardiostream (and displayed in console), or when it is written. For what you say, it may happens when it's sent to the standardiostream, so coping them won't make any change to the data. and in addition, if the lenght parameter is ok, it should skip the zero termination mark, but take in cosideration that, even if it's working, you're accessing 'out of bounds' data, and I'm not sure if it can produce any unspected memory exception.
Anyway, it was only a suggestion.
:)
happy coding!