How would you save a game progress level and read it onto someone’s hard drive. (With a web game and a standalone game)
First, you can’t in the webplayer unless you can crunch it all into a cookie (bad idea), or store it on a webserver (painful).
As for standalone, you have the full .NET framework at your mercy. You can write a simple binary file, or go for full XML if you like. (better idea).
There’s a catch, to save a large amount of data, or complex relationships means a lot of carefully designed code.
If you just want to store what level the player has reached, their health, score and a few other basic variables then I recommend Unity’s PlayerPrefs class instead. It won’t work in the webplayer either.
To write a basic text file, google FileInfo and StreamWriter.
-Jeremy
Thank you, it works perfectly :). I never knew that PlayerPrefs writes info to their computer.