tags:

views:

148

answers:

2

Hello there, 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

+2  A: 

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.

rikh
i can understand that, but i couldn't understand how this can be done using normal file operations. Any sample code would help.
calvin