Read a string with BinaryStream ?

Reverse Engineering leads me to … load a string that is not a PString.

There are also Binary data(Byte, Word, Long…) to read in that file, so I have to use BinaryStream.

BinaryStream knows only PString (and I am happy with it).

Q: How do you read standard Strings ?
A: I read one Byte at a time and if the readed Byte value is 0, the string string reading process is over ?
(certainly)

Q: How do you read standard CStrings ?
A: I read one Byte at a time and if the readed Byte value is below 32 (space) or…: the string is over ?
(Am I right ?)

make ReadBString, WriteBString extension methods that use 32bits for the size instead of PStrings 8bits.
https://forum.xojo.com/19682-problem-writing-text-as-an-individual-element-to-a-binarystream

CStrings are the ones terminated by 0. Add them as extension methods.

Thanks Will, have a nice week-end.