Writing to files to store game data

I don’t think I would have a problem performing this, but I read that there is a security violation if a file is modified or added. Is this true, if so how can I store game data? SQL DB?

Sorry I am just confused!

http://developer.anscamobile.com/content/files
Beware Security Violations

Every time your application is launched, the integrity of the application is verified. It must be the same as the original file that was installed. If the integrity check fails, your app will not launch. Therefore, you should never create, modify, or write to files in the resources directory (see system.ResourceDirectory in System-Defined Directories). [import]uid: 7197 topic_id: 5219 reply_id: 305219[/import]

in the system.DocumentsDirectory you can create and modify files
[import]uid: 6459 topic_id: 5219 reply_id: 17379[/import]

What is with the security warning as shown in my previous post [import]uid: 7197 topic_id: 5219 reply_id: 17385[/import]

See a very good example in the code exchage section for saving variables to a file (which I’m using in my game with great results). It’s saved on the game’s sandbox so there are no security violations. [import]uid: 10835 topic_id: 5219 reply_id: 17513[/import]

Wonderful thank you [import]uid: 7197 topic_id: 5219 reply_id: 17524[/import]