Sign in to follow this  
bulletbutter

Question about saving statistics for an rpg.

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this