Saving positions between gameplays?

A bit of an explanantion of what I’m trying to achieve would probably be the best way to go about this.

The game I’m working on is a tile based puzzle game. The levels are made up of a number of static bricks and ladders. But throughout each level are crates. During gameplay players will be able to move between stages and go back to previous stages, even after the game has been exited.

All I really need to do is store a number of positions and a couple of states for each object. I’d rather not use something like a text file to do this. Since those can be easily edited by the user.

Is there something in unity to do this or would I be better of using something like a database like XML or SQL?

Or if I do use text files is there a way to create them in Unity that would make them secure to an extent?

Thanks!

Edit:

I should mention that this project will be a standalone game not a web based game.

Use PlayerPrefs, and some kind of encryption if you want to prevent editing. (Not that I particularly recommend that…unless there’s some kind of online component, you don’t really gain much by spending the time trying to prevent players from cheating if they want to.)

–Eric

you should use files with binary special formats that you should invent yourself or use cryptography. you should use encoding/decoding libraries

this is the best crypto library
http://www.mono-project.com/Cryptography

there are many tutorials about working with files in .NET in C#.
just google the term “c# working with files” or “binary files C#”