how do I read Specific Data from file?

Say I wanted a "practice program" that prompted the user for username and password. it stores it in plain text (i know later you would add encryption and a salt) but in plain text, something like this:
testusername
testpassword
and saves as info.txt.

how can a c++ program read the file and store username line under a var
and the password line as a var.
Last edited on
look at this thread for hints :
http://www.cplusplus.com/forum/lounge/172240/
Topic archived. No new replies allowed.