Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

check if file exist c#

if(File.Exists(@"C:file.exe"))
{
    Console.WriteLine("This file exists!");
}
else
{
  Console.WriteLine("This file does not exist!");
}
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #check #file #exist
ADD COMMENT
Topic
Name
9+6 =