Java tutorial
//package com.java2s; import java.io.File; public class Main { private static boolean checkIfFileExists(String dirPath, String fileName) { return new File(dirPath + File.separator + fileName).exists(); } }