Login and Sign Up

In reference to this thread.
http://www.cplusplus.com/forum/beginner/227412/

Whenever a New User is registered, the Data of previous user is gone..
Any solutions?? Or how do I create a Database??

Storing username and password in a file seems a good idea.
http://www.cplusplus.com/doc/tutorial/files/
Yes suppose at first run I registered: Member1 and password: 1234
It works, but when i run second time, credentials of First are replaced by Second member's credentials.. so cant i make separate file for each new member?
closed account (SECMoG1T)
use std::fstream::app as a flag when storing the values into the file to make sure they are appended to the end.
Last edited on
Sorry but I am unable to get you @Yolanda ,
Can you please explain me what modifications I can do in existing code [link in first post]
Topic archived. No new replies allowed.