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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top