Properties:
Parent
Root
Methods:
Create
CreateSubDirectory
GetDirectories
GetFiles
GetFileSystemInfo
MoveTo
Example: This exaple will list all files in the specified directory
DirectoryInfo myDir = new DirectoryInfo(@"H:\movies");
Console.WriteLine("Directory: {0}", myDir.FullName);
foreach (FileInfo myfile in myDir.GetFiles())
{
Console.WriteLine("File: {0}", myfile.Name);
}
1 comment:
Amiable brief and this fill someone in on helped me alot in my college assignement. Say thank you you seeking your information.
Post a Comment