I want to store data that will be read from and written to by two executable files. This data file will be used to store settings that are common to both executables. To keep the user from inadvertantly modifying the data file, I would like to limit its write access. Ideally, the write access would be limited to the two executables. Also, it would be nice to have the data file be unreadable, encrypted, or un-openable to keep the user from viewing the data file. Is all of this possible? If so, which file type should I use to store the data?
cheers4beer
0
Newbie Poster
Recommended Answers
Jump to PostAll of those things will not stop the determined (or the incompetent) from modifying the file.
What's wrong with a nice simple text file, with a banner at the top which reads something like
# This file is auto-generated. Any changes you make could be lost
# or cause …
Jump to PostFurther, depending on your choice of programming language, it is likely you can find free software libraries that will store all your configuration data in a structured text file format, for example: XML or even (gasp!) INI.
All 6 Replies
Salem
5,138
Posting Sage
cheers4beer
0
Newbie Poster
Narue
5,707
Bad Cop
Team Colleague
Salem
5,138
Posting Sage
Duoas
1,025
Postaholic
Featured Poster
Salem
commented:
I like XML
+12
cheers4beer
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.