摘要: C# 文件递归Directory.GetDirectories; 获取指定目录下的文件夹,不包括子目录;Directory.GetFiles;获取指定文件夹下的文件,不包括子目录;1.获取所有的文件夹:string path=@"E:\test";静态构造函数中也行 folderList.Add(p... 阅读全文
posted @ 2014-09-04 17:39 土豆哥 阅读(358) 评论(0) 推荐(0) 编辑
摘要: C# Path.Combine 方法的用法*.注意:string filePath3=Path.Combine(string path1,string path2);情况一:path2中以‘/’,'\'开头的:filePath3=path2;例:string path2="/test";或strin... 阅读全文
posted @ 2014-09-04 11:30 土豆哥 阅读(8820) 评论(0) 推荐(0) 编辑