using System;using System.IO;var path = @"C:\tmp\file.txt";var exists = File.Exists(path);Console.WriteLine(exists);