Reputation: 3446
I need to do some file I/O(mainly reading) on a very large file(>3GB), can someone suggest the best way to do so? I want to do in C++.
~calvin
Upvotes: 0
Views: 1020
Reputation: 13972
Just make sure you can process the file in chunks of a manageable size.
For example, read in 100K into memory, process it, discard it, read in the next 100K.
Upvotes: 2