Answers for "how to check if file exits in c#"

C#
2

check if file exist c#

if(File.Exists(@"C:file.exe"))
{
    Console.WriteLine("This file exists!");
}
else
{
  Console.WriteLine("This file does not exist!");
}
Posted by: Guest on September-29-2021

Code answers related to "how to check if file exits in c#"

C# Answers by Framework

Browse Popular Code Answers by Language