Question: how to copy data from one text file to another in c#?
Answer: string sourceFile = @"C:\Temp\MaheshTX.txt";
string destinationFile = @"C:\Temp\Data\MaheshTXCopied.txt";
try.
{
File.Copy(sourceFile, destinationFile, true);
}
catch (IOException iox)
{