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
Saving your Programs Data
Saving your Programs Data
May 8, 2011 at 10:30pm UTC
GamexCoder
(23)
Hello, I started a simple inventory program where you can check and add or subtract inventory but is there a way to save your data in the inventory?
thanks in advance.
May 8, 2011 at 10:36pm UTC
firedraco
(6243)
Use a file.
May 8, 2011 at 10:37pm UTC
ModShop
(1149)
Do you mean to save the variables values into a file to be loaded later, after the program quits, then comes back on?
fstream is the solution for this.
http://cplusplus.com/reference/iostream/fstream/
Topic archived. No new replies allowed.