日期:2014-05-18 浏览次数:20872 次
var files = Directory.GetFiles(AppDomain.CurrentDomain.BaseDirectory, "*.ini"); for (int i = 1; i <= 3; i++) { var path = files[i-1]; var name = Path.GetFileName(path); Console.WriteLine(name); }