Click or drag to resize
FileSystemInfoExists Property
Gets a value indicating whether the file or directory exists.

Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public abstract bool Exists { get; }

Return Value

Type: Boolean
true if the file or directory exists; otherwise, false.
See Also