tia_kamakshi
asked on
Checking File Read and Write Permission
HI,
In .Net 2.0 how do we check that the file has the read and write permissions on it
Thanks
In .Net 2.0 how do we check that the file has the read and write permissions on it
Thanks
Here is a link to the other attributes that can be tested for.
http://msdn.microsoft.com/en-us/library/system.io.fileattributes.aspx
http://msdn.microsoft.com/en-us/library/system.io.fileattributes.aspx
ASKER
Thanks for your help.
What does that mean
if (fi >= 0)
Is this mean file does not exists or this has some other mean
Thanks again
What does that mean
if (fi >= 0)
Is this mean file does not exists or this has some other mean
Thanks again
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Many Thanks
Not a problem, glad to help. ;=)
See the sample code below.
Fernando
Open in new window