- Home /
Question is off-topic or not relevant.
Not a Unity question, but a pure C#-related one
How to create a write-protected file from a c# script?
I try to save the Data of the player in some files using System.IO.File.WriteAllText. Is there any way to avoid players from changing their data by hand? Nobody should be able to get as much Gold as he wants just by changing the text in one unhidden, unencrypted file. Has somebody a good way to encrypt a file? Or to create a write-protected file? A password-saved file? I am looking for every possibility.
melwei
Use binary files
http://www.tutorialspoint.com/csharp/csharp_binary_files.htm
This is not a Unity question, but a pure C#-related one, and thus, does not belong to Unity Answers.
FAQ :
What are the guidelines for writing good questions?
We want Unity Answers to become a comprehensive database of questions and answers related to Unity.
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Can't use BuildFile.path. 0 Answers
File.Create not working 0 Answers
How can I have the user chose a filesave location for a c document? 0 Answers