Csharp/CSharp Tutorial/File Directory Stream/File Move — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Версия 18:31, 26 мая 2010
Moving a file
<source lang="csharp">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"); }
}</source>