解决方法
(编辑:注意问题改变了,最初没有提到byte [];见
revision 1)
嗯,File.Copy跳跃了起来;但是否则这听起来像一个Stream场景:
using (Stream source = File.OpenRead(inPath)) using (Stream dest = File.Create(outPath)) { byte[] buffer = new byte[2048]; // pick size int bytesRead; while((bytesRead = source.Read(buffer,buffer.Length)) > 0) { dest.Write(buffer,bytesRead); } }