android check if file exists code example
Example 1: c# check file exists
if (File.Exists(@"D:\myfile.txt")) {
Console.WriteLine("The file exists.");
}
Example 2: java check if file exists
import java.io.File;
File tmpDir = new File("/var/tmp");
boolean exists = tmpDir.exists();