Click to See Complete Forum and Search --> : lock file


jmgreene
June 4th, 1999, 07:28 AM
I have a text file that contains some strings and a few numbers that my program uses. I want to make it so that the user cannot edit this file without going through the program. Is there an easy way to do this?

Oliver Kinne
June 4th, 1999, 07:30 AM
I can only think of making the file read-only, but the user could still disable the read-only from the desktop, so they could still edit it if they wanted to.

Other possibility: encrypt the file. Although they could still edit it, they wouldn't know what to edit because it wouldn't be plain text.

Hope this helps, otherwise tell me to shut up,
Oliver.