static void Main(string[] args) { string testFile = @"C:\temp\test.txt"; if (File.Exists(testFile)) { Console.WriteLine("Eureka. File found"); Console.ReadLine(); } else { Console.WriteLine("File is not found.."); Console.ReadLine(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)