I am trying to get file attributes or to be more specific the creation date of files stored in a string array.
This is my code
string[] dirs = Directory.GetFiles(dirToSearch, "*ack");
Console.WriteLine("The number of files starting with ack is {0}.", dirs.Length);
foreach (string dir in dirs)
{
Console.WriteLine(dir);
}
How can I get the creation date of the files that I am looping thru?
Thanks in advance
This is my code
string[] dirs = Directory.GetFiles(dirToSearch, "*ack");
Console.WriteLine("The number of files starting with ack is {0}.", dirs.Length);
foreach (string dir in dirs)
{
Console.WriteLine(dir);
}
How can I get the creation date of the files that I am looping thru?
Thanks in advance