CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: lock file

  1. #1
    Join Date
    May 1999
    Location
    Raleigh, NC
    Posts
    47

    lock file

    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?


  2. #2
    Join Date
    May 1999
    Location
    United Kingdom
    Posts
    136

    Re: lock file

    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.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured