24 posted 1 year ago by Lethn 1 year ago by Lethn +27 / -3 20 comments share 20 comments share save hide report block hide replies
general hint: if you are using C or C++, there is no shame in using fread() and fwrite(). know your types and cast them. write out/read in the appropriate number of bytes. Or. use some reasonable serialization library.