Question

I have a windows application(VB.net) which involves copying a huge number of files to a specified location, and performance is the issue i need to check on. I have two ways of doing this:File.Copy and other using Filestream. Which one of the above option is faster? and is there any other faster way to achieve this?

Était-ce utile?

La solution

File.Copy is faster(*)








(*) Why would you trust a opinion in a forum? Instead of being here waiting for an answer you could be doing a test to see which method is faster

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top