visual c++ - How to completely read a file bigger than 4GB in Windows? -


I need to process files larger than 4 GB in Windows. I use FILE and fread () (Approximately 40 GB), and compiling my code in debug-x64 in VS-2010, but the file can not be completely read.

As I've found in C ++ Lib, in the file file, the members in FILE Strut are in 32bit (int), so I found why it failed, but I read the file completely What to do?

If you are worried about running on Windows only, you can use a CFill object Are there. Its member is 64-bit

Comments