Hi, I'm a complete noob to C++. I am currently just making text games where you input a string and depending what that string is and what you have in your "inventory", the program will cout something else.
I would like to know how i would be able to save a value, like the intiger "gun", with a value of lets say 1 to say that you have it in your possession.
How would i save this value to a different folder that the program can later read? Like when the user types in "save", it saves all current values to a specific folder, and when the user gets back on, it checks to see if that folder exists, and then what the values are.
I'm in no great hurry, and would kind of like it if the basic stuff could be explained to me. I want to make a really long text game, but that requires saving.
(oops, im rambling...) Thanks!