Csharp/CSharp Tutorial/File Directory Stream/File Move
Версия от 15:31, 26 мая 2010; (обсуждение)
Moving a file
using System;
using System.IO;
public class MainClass
{
static void Main(string[] args)
{
FileInfo MyFile = new FileInfo(@"c:\Testing.txt");
MyFile.Create();
MyFile.MoveTo(@"c:\MyFolder\Moved Testing.txt");
MyFile.MoveTo(@"C:\MyFolderNew");
}
}