Jump to content
  • Advertisement
Sign in to follow this  
bulletbutter

Question about saving statistics for an rpg.

This topic is 5232 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am fairly new with programming in c++, I just learned arrays and pointers. I decided to make my first rpg. I am not to familiar with linking, I dont even know if that is what I need. What I am wanting is when a person creates a character, I want it saved so the person can stop and continue later. I am thinking I will need to send some information about the character to a different file?? I am really unclear on how to save information and retrieve it at a latter time....Any help would be much appreciated. Thanks in advance!

Share this post


Link to post
Share on other sites
Advertisement
Yes, actually you will have to save the data you need on the hard drive, in a file. You can save it in a text file or in a binary file, the choice is yours. Binary is probably easier, since you just save raw data and you don't have to do an ASCII conversion.
Googling for "C++ file io" may give you some good tutorials on file in/out manipulation.
Here are a few tutorials:

http://www.cplusplus.com/doc/tutorial/tut6-1.html
http://cplus.about.com/library/weekly/aa051802f.htm

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!