I have a txt file with some details as given in the below format:
filename index file position file length
0001.ogg 123 000001 2345
0002.ogg 124 000099 3457
I need to read the third parameter (i.e file position) with corresponds to its file name (first parameter).
Please help me with a sample code or algorithm which can search the string (file name ) and read its data (file position) with a good speed.
The requirement is that I have to search for 869 files.
Please help me as I do not know much about file handling in C++.