|
-
Mar 5th, 2003, 10:42 PM
#1
Thread Starter
Addicted Member
file i/o
I have a book on c++ (sams teach yourself), but it doesn't go into file input and output very well. What i need to do is this:
1. Save a bunch of info about a level in a text file, so i can just load the info about each game level into a struct or maybe a class. The info would be like level parameters and such.
2. I need to write to a file in order to save the game. This would be typical game save info.
Preferably, I would like the file to be formatted like this:
Level:1
NumEnemies:10
Background:C:\picture.bmp
etc.....
then i could just "pick" out the values
i've done this in vb, but i can't find a good resource about it in c++. So if you could give me a hand or point me in the right direction i'd be real grateful.
thanks,
jmiller
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|