I wrote this code and can't figure out how to get the length() of a file.
I want to list all files that are bigger than 50KB.
public static void main(String[] args) throws IOException {
File f = new File(".");
int KB = 1024;
String[] files = f.list();
for (String string : files) {
if (f.length() > 50*KB)
System.out.println(string);
}
}