public static void Main()
System.IO.DirectoryInfo cDirs = new System.IO.DirectoryInfo(@"/");
System.IO.FileInfo f= new System.IO.FileInfo("CDriveDirs.txt");
using (System.IO.StreamWriter sw = new System.IO.StreamWriter(f.open))
foreach (System.IO.DirectoryInfo dir in (cDirs.GetDirectories()))
using (System.IO.StreamReader sr = new System.IO.StreamReader("CDriveDirs.txt"))
while ((line = sr.ReadLine()) != null)