标签:style blog color ar for 文件 div sp log
String path = @"X:\xxx\xxx"; //第一种方法 var files = Directory.GetFiles(path, "*.txt"); foreach (var file in files) Console.WriteLine(file); //第二种方法 DirectoryInfo folder = new DirectoryInfo(path); foreach (FileInfo file in folder.GetFiles("*.txt")) { Console.WriteLine(file.FullName); }
标签:style blog color ar for 文件 div sp log
原文地址:http://www.cnblogs.com/joysky/p/3958100.html