View Single Post
  #4 (permalink)  
Old 08-24-09, 08:28 AM
job0107's Avatar
job0107 job0107 is offline
Community Liaison
 
Join Date: Dec 2006
Location: Tacoma, Washington USA
Posts: 3,454
Thanks: 0
Thanked 140 Times in 137 Posts
Quote:
Originally Posted by ElphieFabalaFae View Post
Thanks. I had read that already, but it didn't show, or even help me understand, how I find a certain line of text within the file and then select certain lines, that may not be consecutive, and that are limited to two lines, instead of calling the entire file, if that makes sense?
If you are going to use a file that stores information that is needed to login, then that file must have some order to it, otherwise it won't make any sense.

So as long as your file has some order to it, then reading a record should be as simple as reading in so many lines and then checking the appropriate lines for the desired information.

What's hard about that?
__________________
Jerry Broughton
Reply With Quote