c# if file exists

56

c# if file exists -

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

c# file exist -

File.Exists(path)

Comments

Submit
0 Comments