Register/login program?

Is it possible to have a user enter a username and password, then have those two strings sent to an external file to be saved and ready to be retrieved later? While also checking to see if the username they enter to login matches the password they set up during registration? If anyone knows alot about this, any help would be greatly appreciated! Any links to tutorials, useful websites pertaining to this topic or anything to help me understand this would be awesome as I am a bit new... Thanks in advance!

~Mashed Pwntato
Last edited on
Save the username/password with a simple format so you will be able to read them easily.
When checking, read usernames from the file until you find one equal to the one you are looking for and then its password.
You may need to check whether a username already exists when inserting a new one.

Tutorial on file I/O: http://www.cplusplus.com/doc/tutorial/files/
Topic archived. No new replies allowed.