Here you can find the source of isFileExist(String path, String fileName)
public static boolean isFileExist(String path, String fileName)
//package com.java2s; import java.io.File; public class Main { public static boolean isFileExist(String path, String fileName) { File file = new File(path + fileName); return file.exists(); }//from w ww. j a va 2s . co m public static boolean isFileExist(String fileName) { File file = new File(fileName); return file.exists(); } }