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
 
Back
Top