i am trying to get list of files inside the directory in this case "c:\dir\" (ofcourse i have files inside) and i wanted to display the name of those files in console program build in c#....
initially i did this....
static class Program
{
static void Main()
{
string[] filePaths = Directory.GetFiles(@"c:\dir\");
Console.WriteLine();
Console.Read();
}
}
how can i see the name of those files....... any help would be appreciated.....
thank you.
(further i would like to know if possible any idea on sending those file path towards dynamic html page.... any general concept how to do that...)