Copy


Copies a file from one location to another.
This method will fail if the file already exists and you have not explicitly stated to overwrite the file.
You also have the option to overwrite the file it it already exists.

System.IO.File.Copy(source, dest [,overwrite]); 
System.IO.File.Copy("file1.txt","file2.txt",false);
System.IO.File.Copy("file1.txt","file2.txt",true);


© 2024 Better Solutions Limited. All Rights Reserved. © 2024 Better Solutions Limited TopPrevNext