I can read from a file, but if I want to change just one line in the file, how would I go about doing that? For example, I have a text file that lists usernames and passwords.
George
Zebra
Jack
precious
I know how to use <fstream> to read this information and save it to variables, but if the user wants to change the password or the username, what do I need to do to change just one line in the file? Any help would be appreciated.
George
Zebra
Jack
precious
I know how to use <fstream> to read this information and save it to variables, but if the user wants to change the password or the username, what do I need to do to change just one line in the file? Any help would be appreciated.