Answers for "if file.exists c#"

C#
17

c# check file exists

if (File.Exists(@"D:myfile.txt")) {
   Console.WriteLine("The file exists.");
}
Posted by: Guest on February-03-2020
11

c# file exist

if (File.Exists("file.exe"))
{
	//file exist
} else {
  //does not exist
}
Posted by: Guest on March-02-2020

C# Answers by Framework

Browse Popular Code Answers by Language