Okay... I'm one of those guys who won't pull over to ask for directions if I have a remote feeling I know where I'm going, unless I'm off someplace that I've never been. As some of you might know, I've assembled a team of artisans to help me make the game I designed. Also, I'm working on a pet project... Well, I've hit a bump, if you want to call it that, with the pet project and I need help!
I'm having a serious issue creating "save game" files. I've been learning this language as I go along and only really programming the media stuff and the front end for my main project... for the pet project, I'm learning stuff bit-by-bit. I figured giving the player the ability to save their game would be easy. The other programmer on my main project deals with memblocks and files and all that, but this is my pet project and I don't want him to simply write it for me and be done with it... I'll never learn that way.
My question:
I have several variables that I need to save to a file and open to read. one of them is a string, and the rest of them are integer values. I tried using the WRITE STRING command for the string and the WRITE LONG command for the integers, but when I later read back the data, the string didn't exist and all of the integers were exactly the same... and the integer didn't even match any of the variables
How do I get all of this data into a file, and how do I read it back later so that the proper variables are understood by the rest of the software? I can't find anything in the code base that'll help me with this. Save me!
- Matt
whose up "some" creek with no paddle, lol
"Hell is an Irish Pub where it's St. Patrick's Day all of the time." ~ Christopher, *The Soprano's*