Sal
Peter Hoffmann Director Data Engineering at Blue Yonder. Python Developer, Conference Speaker, Mountaineer

How to find out if a file exists in C# / .NET?

This my Answer to the stackoverflow question: How to find out if a file exists in C# / .NET?:

System.IO

using System.IO;
if (File.Exists(path)) 
                {
                    Console.WriteLine("file exists");
                }