Click here to Skip to main content
15,891,253 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I want to Create File With C++ code that i can just can be change (Read,Write,Delete,Rename,etc) from my program
only and only from my program
Posted
Comments
♥…ЯҠ…♥ 6-Aug-13 5:41am    
I think you want to create your own extension file which can be accessible only from your application am i right?

Until your program exit, you can lock target file.
So, other program can't access to the file.

Check dwShareMode argument.
CreateFile Function
 
Share this answer
 
Comments
Ali kianinejad 6-Aug-13 5:44am    
please give me an example
and some code
Hi Ali,

I think you want to create your own extension file which can be accessible only from your application am i right?
Link1[^]

Home this helps you better.
Thanks for asking this question in here. :-)

Thanks,
RK
 
Share this answer
 
Comments
Ali kianinejad 6-Aug-13 5:53am    
yes but i need an C++ example code
♥…ЯҠ…♥ 6-Aug-13 6:00am    
Have you ever heard about the site google.com?
Ali kianinejad 7-Aug-13 2:18am    
I can't Find any Example

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