上一页 1 2 3 4 5 6 7 8 9 ··· 21 下一页
摘要: package com.io.liushuaishuai; /* 把ArrayList集合中的字符串数据写入到文本文件。 要求:每一个字符串作为文件中的一行数据 */ import java.io.BufferedWriter; import java.io.FileWriter; import java.io.IOException; import java.util.Arra... 阅读全文
posted @ 2019-08-28 20:29 水果、、 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-08-28 18:42 水果、、 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 分隔符由系统属性定义,适合任何操作系统 readline一次只读一行,且不包括任何终止字符 阅读全文
posted @ 2019-08-28 18:30 水果、、 阅读(157) 评论(0) 推荐(0) 编辑
摘要: package com.io.liushuaishuai; import java.io.*; public class copyjavaDemo01 { public static void main(String[] args) throws IOException { //创建字符缓冲输入流对象 BufferedReader br = new BufferedReader(new FileR 阅读全文
posted @ 2019-08-28 18:12 水果、、 阅读(223) 评论(0) 推荐(0) 编辑
摘要: package com.io.liushuaishuai; import java.io.*; public class BufferedStreamDemo01 { public static void main(String[] args) throws IOException { // FileWriter fw = new FileWriter("myIOstream\\fos.txt") 阅读全文
posted @ 2019-08-28 17:51 水果、、 阅读(167) 评论(0) 推荐(0) 编辑
摘要: package com.io.liushuaishuai;import java.io.FileReader;import java.io.FileWriter;import java.io.IOException;public class copyjavaDemo02 { public stati 阅读全文
posted @ 2019-08-28 17:24 水果、、 阅读(221) 评论(0) 推荐(0) 编辑
摘要: package com.io.liushuaishuai;import java.io.*;public class copyjavaDemo { public static void main(String[] args) throws IOException { InputStreamReade 阅读全文
posted @ 2019-08-28 16:39 水果、、 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-08-28 16:13 水果、、 阅读(266) 评论(0) 推荐(0) 编辑
摘要: package com.io.liushuaishuai; /* 构造方法: OutputStreamWriter (OutputStream out) 创建一个使用默认字符编码的OutputStreamWriter 写数据的5种方式: void writer (int c):写一个字符 void ... 阅读全文
posted @ 2019-08-28 16:06 水果、、 阅读(432) 评论(0) 推荐(0) 编辑
摘要: public class OutputStreamWriterextends WriterOutputStreamWriter是从字符流到字节流的桥梁: 使用指定的charset将写入的字符编码为字节。 它使用的字符集可以由名称指定,也可以被明确指定,或者可以接受平台的默认字符集。 public class InputStreamReader extends ReaderInputStre... 阅读全文
posted @ 2019-08-28 15:31 水果、、 阅读(172) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 21 下一页