loop through directories c# code example
Example 1: C# cycle through directory
foreach(string fileName f in Directory.GetFiles("SomeDirectory"))
{
...
}
Example 2: c# directories loop
root.GetDirectories("*.*", System.IO.SearchOption.AllDirectories);