Create sub directory in CSharp
Description
The following code shows how to create sub directory.
Example
/* ww w . ja va2 s . c o m*/
using System;
using System.IO;
public class MainClass
{
static void Main(string[] args)
{
DirectoryInfo MyRoot = new DirectoryInfo(@"c:\");
MyRoot.CreateSubdirectory("MyFolder");
}
}