<add key="FilePath" value="D:\data" />
//获取配置文件中配置的文件目录
String path = ConfigurationManager.AppSettings["FilePath"];
//读取path路径目录下的所有后缀为.txt的文件路径
string[] files = Directory.GetFiles(path, "*_ResultSeries.txt");
foreach (string file in files)
{
//输出
Console.WriteLine(file);
}