Here you can find the source of isFileExistNotCreate(String fileNameAndPath)
Parameter | Description |
---|---|
fileNameAndPath | the name of the file to be checked |
public static boolean isFileExistNotCreate(String fileNameAndPath)
//package com.java2s; //License from project: Open Source License import java.io.*; public class Main { /**/*www.j av a 2 s .c o m*/ * check if the specified file exists * * @param fileNameAndPath * the name of the file to be checked * @return boolean true if exits, false if not */ public static boolean isFileExistNotCreate(String fileNameAndPath) { return new File(fileNameAndPath).isFile(); } }