Wednesday, August 22, 2007

java check file existance

here's a simple function that checks to see if a file exists

--------------------------------------------------
public boolean exists(String filename) {
File file = new File(filename);
return file.exists();
}

--------------------------------------------------