is File Exists - Android File Input Output

Android examples for File Input Output:File Exist

Description

is File Exists

Demo Code


//package com.java2s;

import java.io.File;

public class Main {
    public static boolean isFileExists(String filePath) {
        File file = new File(filePath);
        return file.exists();
    }/*from  w  w  w.  j a  va  2 s  . c  o m*/
}

Related Tutorials