java check if file exists

99

java check if file exists -

import java.io.File;

File tmpDir = new File("/var/tmp");
boolean exists = tmpDir.exists();

Comments

Submit
0 Comments