How to Check If File Exists in C#/CSharp

How to Check If File Exists in C#/CSharp
Rating: 5 - 1 Votes

How to Check If File Exists in C#/CSharp

To check if file exists in C#/CSharp, we make use of static function Exists of File class.  This will return a boolean value.  Example is given below.