Yes, the C and C++ IO libraries for your platform seems to choke on files larger than 4GB for 32 bit CPU because there is at most 2^32 memory address and > 4GB exceeded that.
I also tried CreateFile, ReadFile, and WriteFile (Windows API functions), doesn't work for files larger than 4GB too.
Thank you guys for your advices, I will go try iostreams and Boost.IOStreams.
Another option is to buy a 64bit CPU



LinkBack URL
About LinkBacks




CornedBee