EN
C# / .NET - file copy
14
points
In C# / .NET it is possible to copy file in following way.
1. File.Copy
method example
using System;
using System.IO;
public class Program
{
public static void Main()
{
string srcPath = @"C:\path\to\file.txt";
string dstPath = @"C:\path\to\file_copy.txt";
File.Copy(srcPath, dstPath);
}
}
Result: