Use one ifstreamat a time in one file. Several resources are lost and you still have to search (because by default the file pointer ifstreamstarts at the beginning of the file).
++ async IO, .
EDIT: , ( ). , ifstream , pubsetbuf(0, 0); , . , ifstream . .