标签:ring tor path 获取文件夹 files div 文件 xxx dir
String path = @"X:\xxx\xxx"; //第一种方法 var files = Directory.GetFiles(path, "*.txt"); foreach (var file in files) Console.WriteLine(file); //第二种方法 DirectoryInfo folder = new DirectoryInfo(path); foreach (FileInfo file in folder.GetFiles("*.txt")) { Console.WriteLine(file.FullName); }
标签:ring tor path 获取文件夹 files div 文件 xxx dir
原文地址:https://www.cnblogs.com/superelement/p/9277755.html