IO流8 --- 使用FileReader和FileWriter实现文本文件的复制 --- 技术搬运工(尚硅谷)
@Testpublicvoidtest4(){FileReaderfr=null;FileWriterfw=null;try{fr=newFileReader("hello.txt");fw=newFileWriter("hello1.txt");char[]cbuf=newchar[5];intlen;while((len=fr.read(cbuf))!=-1){fw.write(cbuf,0,