Вопрос
Я хочу скопировать файл из A в B на C#.Как мне это сделать?
Решение
Метод File.Copy:
Другие советы
Без кода обработки ошибок:
File.Copy(path, path2);
Используйте класс FileInfo.
FileInfo fi = new FileInfo("a.txt");
fi.CopyTo("b.txt");
System.IO.File.Copy
Это должно сработать!
using System.IO;
...
var path = //your current filePath
var outputPath = //the directory where you want your (.txt) file
File.Copy(path,outputPath);
Не связан с StackOverflow