file占用字节

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

原文地址:https://www.cnblogs.com/ls00/p/6932127.html