File afile = new File("C:\\aa.txt");
afile.length();// 文件大小
afile.lastModified();//文件更新日期
至于类型用扩展名判断一下就可以了。