Delete a read-only file

S

schaf

Hi !
I have a simple question. I have to delete a read-only file within my
application. I do it by removing the read-only flag before I delete the
file.
Is it possible to do in a easier way ?
Thanks
Schaf
 
N

Nicholas Paldino [.NET/C# MVP]

Schaf,

No, there isn't. That's what the read-only flag is there for, to make
sure that it isn't modified.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top