子晴的编程日记

记录我的编程日记

导航

2019年8月1日 #

C#读取某一文件夹下的所有文件夹和文件

摘要: static List<string> list = new List<string>();//定义list变量,存放获取到的路径 /// <summary> /// 读取某一文件夹下的所有文件夹和文件 /// </summary> /// <param name="path">文件夹路径</par 阅读全文

posted @ 2019-08-01 10:58 子晴的编程日记 阅读(2639) 评论(0) 推荐(0) 编辑

C#遍历文件夹下的所有文件

摘要: DirectoryInfo theFolder = new DirectoryInfo(path); DirectoryInfo[] dirInfo = theFolder.GetDirectories(); List<string> filelist = new List<string>(); / 阅读全文

posted @ 2019-08-01 10:26 子晴的编程日记 阅读(582) 评论(0) 推荐(0) 编辑