Handling large files
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
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.
精彩评论