New to inputting via files - confusion!

I have a text file that i have created so i am open to changing the format. Or adding whatever i need to identify each row.

My goal is to open the file and assign 12 variables from that file to 12 variables i have in a class called Entry.

However the 12 variables used is dictated by the users input into a textbox on a form. they enter a character such as C14 or D12 something along those lines and that corresponds to a row within the file.
e.g user enters c16 and i want to input the second line from the file below.

12 34 1.6 0.6 15 16 16 0.6 250 560 11 11.5
13 34 1.6 0.6 16 17 12 0.6 260 570 10 13

any help on how to indicate which line within a text file i need inputted will be much appreciated!
Topic archived. No new replies allowed.