File path = new File("c:\\logs\\");
String fileList[] = path.list(new FilenameFilter() {
@Override
public boolean accept(File dir, String fname) {
return fname. startsWith("test.log."); // test.log. 으로 시작하는 파일들만 리턴
}
});
댓글 없음 :
댓글 쓰기