I am trying to get a list of files inside a directory in this case "c: \ dir \" (of course, I have files inside), and I wanted to display the name of these files in the console assembly in C # ....
I originally 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 these files ....... any help would be appreciated .....
thank.
(further I would like to know, if possible, any idea of sending these paths to a dynamic html page .... any general concept of how to do this ...)
source
share