Click here to Skip to main content
15,885,868 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi friends,
While saving a file in Windows Environment from my rich text box, I want to create a separate file type for my application which other applications cannot read. I am currently working in Visual Studio 2008. Please help...
Posted
Comments
Dr.Walt Fair, PE 5-Aug-11 13:22pm    
This is really basic. What have you tried? What isn't working as expected?

Create a binary file with an extension for your application. It won't necessarily prevent other applications form opening it but only your app will be able to read the format.
 
Share this answer
 
v2
Comments
Espen Harlinn 5-Aug-11 12:56pm    
Right on the mark :)
RaviRanjanKr 5-Aug-11 14:11pm    
5+
The only way to do this would be to use encryption.

If you change the file extension without encryption, the user initially wont be able to open the file.
However, once he associates the file to a program in Windows, he can open the file using that program any time.
 
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