Android File Exist isFileExist(String fileName)

Here you can find the source of isFileExist(String fileName)


is File Exist


public static boolean isFileExist(String fileName) 

Method Source Code

//package com.java2s;


public class Main {
    public static boolean isFileExist(String path, String fileName) {
        File file = new File(path + fileName);
        return file.exists();
    }//w w  w.ja  v a2  s.  co m

    public static boolean isFileExist(String fileName) {
        File file = new File(fileName);
        return file.exists();


  1. exists(String path)
  2. fileExists(String path)
  3. fileOrPathExists(String path)
  4. getExistingFile(String path, boolean mustBeReadable, boolean mustBeWritable, boolean isDirectory)
  5. isExist(String path)
  6. isFileExist(String fileName)
  7. isFileExist(String folder, String fileName)
  8. isFileExist(String path)
  9. isFileExist(String path)