check if file exist c#

67

c# check file exists -

if (File.Exists(@"D:\myfile.txt")) {
   Console.WriteLine("The file exists.");
}

Comments

Submit
0 Comments