Writing to file IOS

Im using SDL 1.3 and for my new game I want to have a save game. I would only write out what level the user is on. Just wondering if any one has done this before. I was thinking about using fwrite or try to create a obj c function that will write to a plist in the home directory. Let me know if you have tried this before or know how to do it because some things in ios just stump me.

**
Im using SDL 1.3 and for my new game I want to have a save game. I would
only write out what level the user is on. Just wondering if any one has
done this before. I was thinking about using fwrite or try to create a obj
c function that will write to a plist in the home directory. Let me know if
you have tried this before or know how to do it because some things in ios
just stump me.

I use fopen/fwrite and write my savegames to “…/Documents/”, it works but
I’m not sure it’s the correct way to do it :)On Wed, Nov 16, 2011 at 10:06 AM, cory_mcm <cory_mcm at hotmail.com> wrote:


Bye,
Gabry

Thanks for the fast reply. That sounds like the way I was going to do it, IOS 5 has some weird restrictions about writing to the cache directory and documents directory. Ill try the c++ fwrite and fread and ill post back when I summit to the app store on if they allow that.