Saving your Programs Data

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.
Use a file.
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.