For example, I have a text file...
Now, the first column are the IDs or references. I want to have the user input a specific ID, in this case, abc321. The program will then copy the entire second line and display it onto the screen. How can I position the pointer to the second line from this reference ID?
I understand I could just copy the whole text file into memory, but I don't want to do that, as the text file could hold millions of records. I simply want to create a class to temporarily hold the contents of whatever line the user just searched for.
Any help is appreciated!
This post has been edited by Cloudyeyes: 26 October 2010 - 01:43 PM