C#: how can you easily check if access is denied for a file?

Posted by Horas on Stack Overflow See other posts from Stack Overflow or by Horas
Published on 2008-11-05T17:27:57Z Indexed on 2010/03/18 11:01 UTC
Read the original article Hit count: 239

Filed under:
|
|

Basically, I would like to check if I have rights to open the file before I actually try to open it; I do not want to use a try/catch for this check unless I have to. Is there a file access property I can check before hand?

Thanks in advance.

© Stack Overflow or respective owner

Related posts about c#

Related posts about file-access