I am currently working on a security application using VB 2015 and need to create a file that only my program can write to and read back into the program. What is the best way to go about this?
Reply from Alex Hedley:
Hi Kevin,
What's the ultimate goal?
Can you not store the data in a database, that way you can set permissions against that.
There are a couple of options but none that are great. Ultimately a user with Admin privileges would be able to access the file and delete or modify. Open the file in exclusive mode, only works when the app is running. Create an account and set permissions on the folder and file that the app can access. Make the file protected with a password, you could zip it using a lib.
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Visual Basic Forum.