Here you can find the source of doesFileExist(String paramString)
public static boolean doesFileExist(String paramString)
//package com.java2s; import java.io.File; public class Main { public static boolean doesFileExist(String paramString) { boolean bool1 = false; if (paramString != null) { File localFile = new File(paramString); boolean bool2 = localFile.exists(); bool1 = false;//from w ww .j a va 2s . c o m if (bool2) { boolean bool3 = localFile.canRead(); bool1 = false; if (bool3) bool1 = true; } } return bool1; } }