Click here to Skip to main content
15,885,980 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear all,
can anyone know about how to do the file operation on the .DAT file using windows application. i am creating an application where i can store the some user information into to that DAT file. And also i ma retrieving the same information from that .DAT file.
My main aim is to secure the information from user so that he can not read the data directly.
can anyone having information related with the same.

Thanks & Regards
Balkrishna Raut
Posted

1 solution

If you have the choice of how to store the data and what format it takes, then one option might be to set up an object that can be serialised and deserialised to/from persistent storage. This would obviously create an XML file with the data, which you could pass through some form of encryption if you want to protect the contents.

Here is an example;
c-serializing-deserializing-a-des-encrypted-file-from-a-stre[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900