C# DirectoryInfo Create()
Description
DirectoryInfo Create()
Creates a directory.
Syntax
DirectoryInfo.Create()
has the following syntax.
public void Create()
Returns
DirectoryInfo.Create()
method returns
Example
Creates a directory.
using System;// ww w . j av a 2s . c o m
using System.IO;
class Test
{
public static void Main()
{
DirectoryInfo di = new DirectoryInfo(@"c:\MyDir");
di.Create();
}
}