Here you can find the source of doesExist(String fname)
public static boolean doesExist(String fname)
//package com.java2s; import java.io.*; public class Main { public static boolean doesExist(String fname) { File f = new File(fname); return f.exists(); }/*from w ww .j a v a2 s.co m*/ }