christie
2
Q:

c# file exist

if (File.Exists(@"D:\myfile.txt")) {
   Console.WriteLine("The file exists.");
}
12
if (File.Exists("file.exe"))
{
	//file exist
} else {
  //does not exist
}
7

New to Communities?

Join the community