import java
.io
.*
;
public class Test {
public static void main(String
[] args
) throws IOException
{
InputStreamReader isr
=new InputStreamReader(new FileInputStream("a.txt"));
OutputStreamWriter osw
=new OutputStreamWriter(new FileOutputStream("b.txt"));
char[] chs
=new char[1024];
int len
=0;
while ((len
=isr
.read(chs
))!=-1){
osw
.write(chs
,0,len
);
}
isr
.close();
osw
.close();
}
}
转载请注明原文地址: https://lol.8miu.com/read-15035.html