fwrite odd results

hi. I try to use fwrite to make a binary file of a scene but with one particular scene, it write an additionnal octet where it doesn’t. What happens ? Have you already heard or encounter something like this?

help is welcome :wink:


But this sounds like some aligning issue. Instead of writing a whole structure, write the structures members seperatly. Might help.

I found the problem, it’s because I open the file only with the ‘w’ option instead of the ‘wb’ one .