0

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

rplusg
  • 3,418
  • 6
  • 34
  • 49

1 Answers1

2

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.

Rik Heywood
  • 13,816
  • 9
  • 61
  • 81
  • i can understand that, but i couldn't understand how this can be done using normal file operations. Any sample code would help. – rplusg Nov 18 '09 at 09:30