Aleehome

Aleehome_Code

2018年4月15日

C#获取文件夹下面的所有文件名

摘要: String path = @"X:\xxx\xxx"; //第一种方法 var files = Directory.GetFiles(path, "*.txt"); foreach (var file in files) Console.WriteLine(file); //第二种方法 Direc 阅读全文

posted @ 2018-04-15 14:50 Aleehome 阅读(388) 评论(0) 推荐(0) 编辑

导航