Java File Exist FileExists(String file)

Here you can find the source of FileExists(String file)

Description

File Exists

License

Open Source License

Declaration

public static boolean FileExists(String file) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.io.File;

public class Main {
    public static boolean FileExists(String file) {
        boolean fileExists = false;

        try {/*from   w  w w.  j a v  a 2 s. co  m*/
            File f = new File(file);
            fileExists = f.exists();
        } catch (Exception e) {
            // eat exception
        }

        return fileExists;
    }
}

Related

  1. fileExists(final String path)
  2. fileExists(final String pathname)
  3. fileExists(String absolutePathAndFileName)
  4. fileExists(String aFilename)
  5. fileExists(String file)
  6. fileExists(String filename)
  7. fileExists(String filename)
  8. fileExists(String fileName)
  9. FileExists(String filename)