Istnieje plik testowy Java
File tempFile = new File("c:/temp/temp.txt");
boolean exists = tempFile.exists();
Busy Badger
File tempFile = new File("c:/temp/temp.txt");
boolean exists = tempFile.exists();
import java.io.File;
File tmpDir = new File("/var/tmp");
boolean exists = tmpDir.exists();