** File 확장자
String fileName = "a.txt";
if(fileName.endsWith("txt")){
// do something
}
** File Size
File file = ..
long fileSize = file.length();
** File read bytes
FileInputStream in = new FileInputStream(file);
int len = 0;
do{ len = in.read(buffer); }while(len!= -1);
댓글
댓글 쓰기