import java.io.File; public class MainClass{ public static void main(String[] argv){ File file = new File("c:\\test.dat"); String[] fileNames = file.list(); System.out.println(file.length()); } }
0