怎么拷不过去? 把len 去掉的话就没问题了
FileInputStream fr = new FileInputStream("d:\\stuinfo.txt");
FileOutputStream fw = new FileOutputStream("d:\\b.txt");
int len =0;
byte[] b = new byte[1024];
while((len=fr.read(b))!=-1)
{
Arrays.sort(b);
fw.write(b, 0, len);
}
fr.close();
fw.close();
|
|