Question about saving statistics for an rpg.

Started by
0 comments, last by Hedos 19 years, 8 months ago
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!
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

This topic is closed to new replies.

Advertisement