Reading from an input file to get a single line

Alright, so basicly my assignment is number 11 here :

http://books.google.com/books?id=HtgSvljvC7IC&pg=PA165&lpg=PA165&dq=Ch3_Ex6data.txt&source=bl&ots=SZZywuiWxB&sig=7wtldeSu0gfDJsudomPKgmWjuWY&hl=en&ei=kRyaSYDXLde4twfQkIyfCw&sa=X&oi=book_result&resnum=1&ct=result#PPA227,M1

now, I can easily make the program run not using any file input, just what the user enters. However, for learning purposed I decided to read the account numbers from a file, then do the appropriate calculations(I'm using if else statements). But, I really dont know how to approach this when its being read from a file. I would show my code here, but I have no idea how to get it off pico. I set up all all the inFile code and stuff. But how do I have it scan the file for the particular line with the account number the user entered? Do I import everything first then start my if statements?
Yes, I would read the file into memory then search it for what you want.
how would I do that?
Topic archived. No new replies allowed.