EN
C# / .NET - file copy
14 points
In C# / .NET it is possible to copy file in following way.
xxxxxxxxxx
1
using System;
2
using System.IO;
3
4
public class Program
5
{
6
public static void Main()
7
{
8
string srcPath = @"C:\path\to\file.txt";
9
string dstPath = @"C:\path\to\file_copy.txt";
10
11
File.Copy(srcPath, dstPath);
12
}
13
}
Result: