KSuthar wrote:
Can you tell me other ways to prevent it?
No, I can't think of a way to be sure. And I don't think it's a reasonable goal. If the user wants to modify the file outside the application, why not allow it? It seems to me that the application needs to: 0) Check that the file exists 1) Load it into an XmlDocument 2) Check the schema 3) Read the value and confirm that's it either True or False 4) If anything in that process fails, then use the default, otherwise you got a valid value, why do you care how it got there? You might also consider a binary file rather than an XML (text) file, to make modification more difficult.