How to get the list of files in a specified folder (C#)

DirectoryInfo dInfo = new DirectoryInfo("folder path");
FileInfo[] fInfo = dInfo.GetFiles("*.xml");
foreach (FileInfo f in fInfo)
{
...
}

No comments: