Your application needs to read/write a txt file, andyou want to prevent others from accessing/modifying the file, am i right?
If so, some ideas for you:
1. Put the file in your application folder if possible to tell others that "don't modify or move the file, it is a part of the application.".
2. Encrypt the file when write operation is done, decrypt itbefore read operation,following aresome helpful links about Encrypt/Decrypt file:
http://www.codeproject.com/KB/security/fileencryptdecrypt.aspx;
http://www.codeproject.com/KB/security/DotNetCrypto.aspx;
http://support.microsoft.com/kb/307010;
3. There are some smart softwares have the abliity to hide file/folder, but those kits mayalso make the file inaccessible to your application.
Thanks,
Eric
Please remember to mark helpful replies as answers and unmark them if they provide no help.