Java tutorial
//package com.java2s; import java.io.*; public class Main { private static boolean doesFileExist(String filePath) { File f = new File(filePath); if (f.isFile()) return true; return false; } }