Aug 9, 2011

How to Copy a single File from one folder to another in C# .NET


string fileToCopy = "C:\\test1.txt";
string newLocation = "C:\\copiedFiles\\test1.txt";



               System.IO.File.Copy( fileToCopy, newLocation );

No comments:

Post a Comment