cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Login and Sign Up
Login and Sign Up
Oct 4, 2018 at 7:04am UTC
Dharmaraj24
(7)
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??
Oct 4, 2018 at 7:07am UTC
Thomas1965
(4571)
Storing username and password in a file seems a good idea.
http://www.cplusplus.com/doc/tutorial/files/
Oct 4, 2018 at 7:12am UTC
Dharmaraj24
(7)
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?
Oct 4, 2018 at 7:24am UTC
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
Oct 4, 2018 at 7:26am UTC
Oct 14, 2018 at 9:22am UTC
Dharmaraj24
(7)
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.