using System; using System.IO; public class Tester { public static void Main() { FileInfo path = new FileInfo(@"/home/gladstone/testfile.txt"); If (path.Exists) { Console.WriteLine("Hello World!"); } else { Console.WriteLine("The file cannot be found"); } } }