Hopefully this should be an easy enough question. I intend to make a file as difficult as possible to tamper with accidentally. Any data corruption will prevent the script from working. The file will be made available to the script for writing purposes but the end user mustn't touch it. I don't expect there will be any watertight solutions for this, but so far I have thought of the following options.
1. Set file properties to read only
2. Set file properties to hidden
3. Remove the file extension.
4. Create a backup copy elsewhere. on disc (Hmm: not portable)
5. Password protected zip archive (Hmm: may require 3rd party software)
Perhaps a combination of options 1 to 3 will be good enough, but maybe someone has done something like this before and has a better solution. Any suggestions will be appreciated. Gracias!