자바 File.exists()

1 개요[ | ]

자바 File.exists()
System.out.println( new File("C:\\Windows\\win.ini").exists() );
System.out.println( new File("C:\\not-exist-file").exists() );
// true
// false
public static boolean fileExists(String filepath) {
	return new File(filepath).exists();
}

2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}