刚刚遇到一个文件就是byte[] buf = new byte[1024*8];
while (true) {
int read = 0;
if (in != null) {
read = in.read(buf);
}
System.out.println(read);
if (read == -1) {
break;
}
fileOut.write(buf, 0, read);
}
为啥到最后read值大于0的呢,以至于程序永久循环下去了,求解iojavafileinputstream