Copy File

suggest change

File static class

The static File class copies a file in one call.

File.Copy(@"sourcePath\abc.txt", @"destinationPath\abc.txt");
File.Copy(@"sourcePath\abc.txt", @"destinationPath\xyz.txt");

Remark: File.Copy reads the source and writes it to the destination. The time grows with the file size, and the call blocks the thread until the copy finishes.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents