开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜