i am going to make the Database (i.e enter name, phone # etc) but how i will make it permanent (i.e to save it permanent). When i close the program and reopen, my previous Data that i had enter should Present???

How i will make it???

Recommended Answers

All 3 Replies

Write to a file.

i am going to make the Database (i.e enter name, phone # etc) but how i will make it permanent (i.e to save it permanent). When i close the program and reopen, my previous Data that i had enter should Present???

How i will make it???

Write to a file.

I would have to agree with WaltP lol.... Unless your running a computer with non-volatile memory in it :)

You can use the technique of simple command line games i.e you use an ofstream to write to a file when you are done, then when u restart d app, u use an ifstream to load them back

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.