Check if filename Exists? .NET

Posted by acidzombie24 on Stack Overflow See other posts from Stack Overflow or by acidzombie24
Published on 2010-04-03T10:22:40Z Indexed on 2010/04/03 10:43 UTC
Read the original article Hit count: 132

Filed under:
|
|

I find myself doing this a lot just to ensure the filename is not in use. Is there a better way?

Directory.Exists(name) || File.Exists(name)

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET