[Solved] how to display the statistics about all the files in a folder in C# [closed]


Look at this:

“How to: Get Information About Files, Folders, and Drives (C# Programming Guide)”

http://msdn.microsoft.com/en-us/library/6yk7a1b0.aspx

For example:

// Get the files in the directory and print out some information about them.
System.IO.FileInfo[] fileNames = dirInfo.GetFiles("*.*");


foreach (System.IO.FileInfo fi in fileNames)
{
       Console.WriteLine("{0}: {1}: {2}", fi.Name, fi.LastAccessTime, fi.Length);
}

You can change the Console.WriteLine to the format that you want…

solved how to display the statistics about all the files in a folder in C# [closed]