This problem just blows my mind:
I write a file with fwrite containing an integer value (binary).
Then I read that value with fread in a different programm. It works fine except for the values 13 and 26!
I have even used a hex editor to check and write the file myself. All is fine. All the numbers are read beatyfully, except 0x0D=13 and 0x1A=26.
I'm totally lost. I've used serveral compilers but it's always the same.
HELP!
I write a file with fwrite containing an integer value (binary).
Then I read that value with fread in a different programm. It works fine except for the values 13 and 26!
I have even used a hex editor to check and write the file myself. All is fine. All the numbers are read beatyfully, except 0x0D=13 and 0x1A=26.
I'm totally lost. I've used serveral compilers but it's always the same.
HELP!