Here you can find the source of isFileExisted(String filePathname)
public static boolean isFileExisted(String filePathname)
//package com.java2s; //License from project: Open Source License import java.io.File; public class Main { public static boolean isFileExisted(String filePathname) { boolean existed; try {/*from w w w . j a v a2s .c o m*/ File f = new File(filePathname); existed = f.isFile(); } catch (Exception e) { existed = false; } return existed; } }