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  郄永军  阅读(7438)  评论(0)    收藏  举报