Is there a way to configure the way a binary file is written to files so that I can read the file from a C ++ program?
For instance:
myBinaryWriter.Write(myInt); myBinaryWriter.Write(myBool);
And in C ++:
fread(&myInt, 1, sizeof(int), fileHandle); fread(&myBool, 1, sizeof(bool), fileHandle);
EDIT: from what I see, if the length of the string is small enough to fit into one byte, while it writes it, which is bad if I want to read it in C ++.
source share