I am designing a software and want to save data in a txt file. but dont want the user to open them as txt file, only the app should do it.
Is this possible? if yes, how? I've searched in google, but not any good reason to help me out.
Altjen_1 0 Newbie Poster
Recommended Answers
Jump to PostMake a new extension (you can check filext.com to make up one that is probably not in use) then when you double click on it you can tell Windows to use your app …
Jump to PostOne way to discourage the user from opening the file with a text editor is to store binary data in the file. You could encrypt the file to produce a binary data file.
Jump to PostYou could use simple obfuscation, like base 64 encoding. If the data is fixed length, you could store it in the executable, or save it as a binary file, maybe a .bin or .dat extension. It will be readable as text but the data will be garbled. If you don't …
All 9 Replies
Reverend Jim 5,259 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
sepp2k 378 Practically a Master Poster
Altjen_1 0 Newbie Poster
AssertNull 1,094 Practically a Posting Shark
Reverend Jim 5,259 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
Altjen_1 0 Newbie Poster
Alina_2 0 Newbie Poster
Gribouillis 1,391 Programming Explorer Team Colleague
tinstaafl 1,176 Posting Maven
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.