摘要:
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
水果、、
阅读(323)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2019-08-28 18:42
水果、、
阅读(141)
评论(0)
推荐(0)
摘要:
分隔符由系统属性定义,适合任何操作系统 readline一次只读一行,且不包括任何终止字符 阅读全文
posted @ 2019-08-28 18:30
水果、、
阅读(164)
评论(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
水果、、
阅读(230)
评论(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
水果、、
阅读(172)
评论(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
水果、、
阅读(235)
评论(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
水果、、
阅读(161)
评论(0)
推荐(0)
摘要:
阅读全文
posted @ 2019-08-28 16:13
水果、、
阅读(271)
评论(0)
推荐(0)
摘要:
package com.io.liushuaishuai; /* 构造方法: OutputStreamWriter (OutputStream out) 创建一个使用默认字符编码的OutputStreamWriter 写数据的5种方式: void writer (int c):写一个字符 void ... 阅读全文
posted @ 2019-08-28 16:06
水果、、
阅读(444)
评论(0)
推荐(0)
摘要:
public class OutputStreamWriterextends WriterOutputStreamWriter是从字符流到字节流的桥梁: 使用指定的charset将写入的字符编码为字节。 它使用的字符集可以由名称指定,也可以被明确指定,或者可以接受平台的默认字符集。 public class InputStreamReader extends ReaderInputStre... 阅读全文
posted @ 2019-08-28 15:31
水果、、
阅读(177)
评论(0)
推荐(0)

浙公网安备 33010602011771号