Open the file(s) in binary mode.
...fopen("filename", "rb")...
Don't forget that the library code no longer translates "newlines" in binary mode. If the file has "\r\n"
pairs to end lines, you'll get both '\r'
and '\n'
when reading the file.