02-23-2006, 08:18 AM
Use "rb" mode. That is, binary. By default, file is opened in text mode, where some characters are translated (eg \n to \r\n).
,,int* inFile = +fopen(fname, "rb")
You can also use File class. It wraps fopen and similar functions. Example:
,,int* inFile = +fopen(fname, "rb")
You can also use File class. It wraps fopen and similar functions. Example: