Here you can find the source of fileExist(String p_filename)
Parameter | Description |
---|---|
p_filename | String |
public static boolean fileExist(String p_filename)
//package com.java2s; import java.io.*; public class Main { /**// w w w . j a v a 2s. com * Check if this file/directory exist * @param p_filename String * @return boolean */ public static boolean fileExist(String p_filename) { return (new File(p_filename)).exists(); } }