A
Alan T
This is the code:
FileAttributes attributes = File.GetAttributes(sFileName);
MessageBox.Show(attributes.ToString());
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.GetAttributes(sFileName);
MessageBox.Show(attributes.ToString());
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.