Read-Only Files

  • Thread starter Thread starter Mike Jones
  • Start date Start date
M

Mike Jones

It appears that in the .NET CF there is no way to determine whether or not a
file is marked as read-only. Can someone please confirm this? The
"GetAttributes" and "SetAttributes" methods are missing from the
System.IO.File object. Also since I cannot change the file attributes, I am
not able to delete a read-only file. I find it hard to believe that this is
not possible. Am I missing something here?

Regards,
Mike Jones
Syntegra (USA)
 
For the Compact Framework look at the Attributes property of the
System.IO.FileInfo class instead.

Peter
 

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

Back
Top