This is the code:
FileAttributes attributes = File.GetAttribu tes(sFileName);
MessageBox.Show (attributes.ToS tring());
The message box shows "ReadOnly, Archive"
How do I test if the file is ReadOnly?
I tried
if (attributes == FileAttributes .ReadOnly)
but it always give me false.
FileAttributes attributes = File.GetAttribu tes(sFileName);
MessageBox.Show (attributes.ToS tring());
The message box shows "ReadOnly, Archive"
How do I test if the file is ReadOnly?
I tried
if (attributes == FileAttributes .ReadOnly)
but it always give me false.
Comment