摘要: 利用files类对文件进行读和写,里面的方法自带关闭流 (jdk7里的try-with-resouese) try { byte[] bytes = Files.readAllBytes(Paths.get("E:\\testAutoCloseable.txt")); String s = new 阅读全文
posted @ 2019-04-16 10:19 向前向后看 阅读(176) 评论(0) 推荐(0) 编辑