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.