Saturday, June 27, 2009

How to Get the Size of a File


File file = new File("C:/temp/temp.txt");
// Get the number of bytes in the file
long length = file.length();

0 comments:

 

Sample Java Codes Copyright © 2008 Green Scrapbook Diary Designed by SimplyWP | Made free by Scrapbooking Software | Bloggerized by Ipiet Notez