File moving
In this chapter you will learn:
Moving a file
using System;//j a va 2 s. co m
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");
}
}
Next chapter...
What you will learn in the next chapter:
Home » C# Tutorial » File, Path