Check out example codes for "c# check file exists". It will help you in understanding the concepts better.

Code Example 1

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

Code Example 2

if (File.Exists("file.exe"))
{
	//file exist
} else {
  //does not exist
}

Learn ReactJs, React Native from akashmittal.com