0
Storing data in C++?
How can I store data even after the program is closed? Say I write a program that asks for a name and saves that name, and displays the name after closing and opening the program, and will continue to display every name you enter. Is that just a text file thing? I'm confused.
2 Respuestas
+ 3
Perhaps
Code Start
check for file
- if file found
- load its data
- if the file is not found
- get user to enter the data
- save the data
Code End
+ 1
Proper way to make data persistent is to save it in database.