Any faster way to general file copy?

  • Thread starter Thread starter Sin Jeong-hun
  • Start date Start date
S

Sin Jeong-hun

I've always used the old way I learned from when I began programming.
1. Read # bytes into the buffer from the source file
2. If bytes read is 0 then exit.
3. Else write buffer into the destination file.
4. Goto 1.

It looks like the easiest way to this job but when I did so, it seems
the copy process is slower than in Windows Explorer. And it looks if
the buffer is larger, then the speed generally gets faster.
Anyways, isn't there any faster way to copy a file?
 
Sin said:
I've always used the old way I learned from when I began programming.
1. Read # bytes into the buffer from the source file
2. If bytes read is 0 then exit.
3. Else write buffer into the destination file.
4. Goto 1.

It looks like the easiest way to this job but when I did so, it seems
the copy process is slower than in Windows Explorer. And it looks if
the buffer is larger, then the speed generally gets faster.
Anyways, isn't there any faster way to copy a file?

You could try System.IO.File.Copy

Andrew
 
Back
Top