Possible Duplicate: Size of folder or file. I use below to declare a file. File f ... Use the length() method in the File class. From the javadocs: Returns the length of the ...
stackoverflow.com