For your information: the difference between text files and binary files has mainly to do with newlines (Windows uses CR-LF, everything else uses LF) and end of file (Windows will stop reading a text file when it sees character 26). C functions may do some filtering on text files (e.g. converting \r\n to \n). Binary files are read and written as-is, instead.
Don't pay much attention to "the hedgehog" in my nick, it's just because "Sik" was already taken =/ By the way, Sik is pronounced like seek, not like sick.
I just realized something: the code should be writting ABCDEFGHI\0, but he says he sees ABCDEFGH... What happened to the last two characters?
Don't pay much attention to "the hedgehog" in my nick, it's just because "Sik" was already taken =/ By the way, Sik is pronounced like seek, not like sick.