package com.lee;
import java.io.File;
import java.util.Date;
public class FileStudy {
public static void main(String[] args){
File file=new File("c:\\windows\\부채.bmp");
try{
System.out.println("AbsolutePath-"+file.getAbsolutePath());
System.out.println("Path-"+file.getPath());
System.out.println("CanonicalPath-"+file.getCanonicalPath());
System.out.println("최근 수정일"+file.lastModified());
System.out.println("최근 수정일"+new Date(file.lastModified()));
System.out.println("파일 사이즈"+file.length());
System.out.println("읽기 속성"+file.canRead());
System.out.println("쓰기 속성"+file.canWrite());
System.out.println("숨김 속성"+file.isHidden());
}catch(Exception e){
}
}
}