@Test public void testFile(){ File file = new File("demo"+File.separator+"Hello.txt"); System.out.println(file+"占用字节"+file.length()); }