Re: How do I get a file size?
Wednesday, April 17, 2002 01:42 AM
VERY EASY... just read the API documentation. use the java.io.File class. it has a length() method, and it has also methods to get all files in a directory... so its very easy to write a method which calculates the size of all in this directory (and maybe recursive, all directories below too)