Quantcast
Channel: Ashish Khandelwal
Viewing all articles
Browse latest Browse all 100

Replacing File.Copy

$
0
0
The easiest way to copy a file in a .NET program is to call the File.Copy method, supplying it the source and destination files. It could hardly be simpler than this: File.Copy(srcFilename, destFilename); That method will throw IOException if there is an existing file of the same name as destFilename. If you want to overwrite [...]

Viewing all articles
Browse latest Browse all 100

Trending Articles