2021
11-01
11-01
浅谈缓冲字符流 BufferedReader BufferedWriter用法
缓冲字符流BufferedReader和BufferedWriter问题:之前的文件读写都是按照字节、字符或者数组来实现的,对于文本文件而言,能否按照行,一行行读写呢。提供了BufferedReader和BufferedWriter实现按行读写packagecom.bjsxt.ios3;importjava.io.*;publicclassTestBufferedReaderWriter{publicstaticvoidmain(String[]args)throwsIOException{//1.创建流BufferedReaderbr=newBuffe...
继续阅读 >