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!
006ruler 0 Newbie Poster
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
006ruler 0 Newbie Poster
Dannyo329 10 Junior Poster in Training
006ruler 0 Newbie Poster
Dannyo329 10 Junior Poster in Training
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
006ruler 0 Newbie Poster
Narue 5,707 Bad Cop Team Colleague
006ruler 0 Newbie Poster
Narue 5,707 Bad Cop Team Colleague
006ruler 0 Newbie Poster
cyberguy007 0 Newbie Poster
Dannyo329 10 Junior Poster in Training
cpeister 0 Newbie Poster
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.