Are there any difference in using File.Copy to move a file or to write a stream to the location?
问题 I am refactoring some code an have a question that i could use a few comments on. The original code download a file to a stream. Then it writes the stream to a File in a temp directory before using File.Copy to overwrite an existing file in the production directory. Are there any benefits from writing it to the temp dir first and using the File.Copy in contrast to just writing the stream to the production directory right away? One reason could be that the File.Copy is faster then writing a