虽然 Files 和 Paths 是 java.nio 包里面的类,但他俩封装了很多读写文件的 ... Files.write(Paths.get("/path/to/file.txt"), data); // 写入文本并指定编码: Files.
確定! 回上一頁