日期:2014-05-20 浏览次数:21034 次
string[] dirs = Directory.GetFiles(@"c:\", "a*.txt"); Console.WriteLine("The number of files starting with c is {0}.", dirs.Length); foreach (string dir in dirs) { Console.WriteLine(dir); }
------解决方案--------------------
GetFiles(@"c:\", "a*.txt");