How to get file exist or not in java code example

This method is used to check that file is exist or not on your given path.

 public static boolean getFileExist(String filePath)
    {
        File f = new File(filePath);
        return f.exists();
    }

Comments

Recent Post

Recent Posts Widget

Popular posts from this blog

Capture image from webcam java code, examples

Use of req.query, req.params and req.body in NODE JS

How to capture finger prints in java