1 File file = new File("文件名");
2 
3 // Get the number of bytes in the file
4 long length = file.length();
5 

 

 

posted on 2010-12-14 16:11  郄永军  阅读(7435)  评论(0编辑  收藏  举报