Jump to content

C++ Save Data Question!


Recommended Posts

Yo! I'm working on a really cool text based rp game using a console application using C++! But I have a huge question. Say I wanted to edit a variable when A player does something.

 

So like the player opens the application for a bit, but then gets off for a while and wants to save his game before he exits so he can go back where he left off. I was wondering, how would you save a variable to the computer(Or like in a separate file) and then read it on the boot up of the application next time he gets on? 

 

THANKS FOR ANY HELP OR SUGGESTIONS! I NEED IT!

 

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...