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 [...]
↧