随笔分类 -  IO

摘要:方法一 PrintWriter pr = new PrintWriter("abc.txt"); pr.println("ddd"); pr.println("ddd"); pr.println("ddd"); pr.println("ddd"); pr.close(); 方法二 BufferedW 阅读全文
posted @ 2020-06-04 14:47 wlp贼丑 阅读(124) 评论(0) 推荐(0)
摘要:// 复制图片 将图片1 复制到2 BufferedInputStream bis = null; BufferedOutputStream bos = null; bis = new BufferedInputStream(new FileInputStream("1.png")); bos = 阅读全文
posted @ 2020-06-04 14:41 wlp贼丑 阅读(193) 评论(0) 推荐(0)