File Security

Sep 13 2007 6:47 AM

How can i stop an user from deleting a file?

We have an application which when saved will save the data to an XML file.The user again can open the application and before the process completes,can delete the file. This deletion has to be stopped.

When i tried using FileSecurity,GetAccessControl and SetAccessControl,it didnot work.

 

Can i get some help