Languages
[Edit]
PL

C# / .NET - kopia pliku

3 points
Created by:
Sylwia
1327

In C# / .NET mo┼╝liwe jest skopiowanie pliku w nast─Öpuj─ůcy spos├│b.

1. File.Copy przykład metody

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);
	}
}

Wynik:

  1. File.Copy Method - Microsoft Docs
Hey ­čĹő
Would you like to know what we do?
  • Dirask is a friendly IT community for learners, professionals and hobbyists to share their knowledge and help each other in extraordinary easy way.
  • We welcome everyone,
    no matter what the experience,
    no matter how basic the question is,
    this community will help you.