rplusg
rplusg

Reputation: 3446

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

Upvotes: 0

Views: 1020

Answers (1)

Rik Heywood
Rik Heywood

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

Related Questions