You can request the file size by creating a File reference, and then calling the length() method.


File someFile = new File("test.txt");
System.out.println("The size of test.txt is " +...