关于reaf和write
while((b = file.read(bytes,0,bytes.length)) != -1){
file2.write(bytes,0,b);
}
这段代码,是read读一个字节write就写一次??
还是read全部读到bytes中了,write才开始写
while((b = file.read(bytes,0,bytes.length)) != -1){
file2.write(bytes,0,b);
}
这段代码,是read读一个字节write就写一次??
还是read全部读到bytes中了,write才开始写
2017-05-07
举报