File file = new File("ww.txt"); System.out.println(file.length()); System.out.println(file.exists());
收起
估计就是你文件地址放错了
报告相同问题?