Directory.GetFiles : Directory « System.IO « C# / C Sharp by API






Directory.GetFiles

 

using System;
using System.IO;

class MainClass
{
  public static void Main() 
  {
    string[] aFiles = Directory.GetFiles("c:\\");

    foreach (string s in aFiles)
      Console.WriteLine(s);
  }

}

   
  








Related examples in the same category

1.Directory.CreationTime
2.Directory.Delete
3.Directory.Exists
4.Directory.GetCurrentDirectory()
5.Directory.GetLogicalDrives
6.Directory.SetCurrentDirectory(String path)