Android File Exist isFileExist(String fileName)

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

Description

is File Exist

Declaration

public static boolean isFileExist(String fileName) 

Method Source Code

//package com.java2s;

import java.io.File;

public class Main {

    public static boolean isFileExist(String folder, String fileName) {
        boolean bool = false;
        bool = new File(folder, fileName).exists();
        return bool;
    }/*from  w  ww  .  j a  va  2  s.  c  om*/

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

Related

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