摘要: public static void main(String[] args) throws IOException { //能直接看懂的就是字符流。 //其中输入流Reader抽象类帮助用户在Unicode流内获得字符数据;而Writer类则是实现了输出。 FileWriter fw =new Fi 阅读全文
posted @ 2021-01-21 21:36 谷先生 阅读(86) 评论(0) 推荐(0)
摘要: 方法一 public static void main(String[] args) throws IOException { //构造一个数据输入流对象,在数字操作上Data要比File厉害 FileInputStream fis =new FileInputStream("d:/Auser/2. 阅读全文
posted @ 2021-01-21 21:04 谷先生 阅读(136) 评论(0) 推荐(0)
摘要: public static void main(String[] args) throws IOException, FontFormatException { String name = "d:/Auser/2.png"; BufferedImage dar = ImageIO.read(new 阅读全文
posted @ 2021-01-21 19:53 谷先生 阅读(139) 评论(0) 推荐(0)
摘要: 新版 String f="d:/Auser/d.txt"; FileInputStream fis = null; //读取文件内容,并输出到控制台,新版 try { fis = new FileInputStream("d:/Auser/d.txt"); System.out.println(ne 阅读全文
posted @ 2021-01-21 14:24 谷先生 阅读(240) 评论(0) 推荐(0)