文章分类 -  c#摘抄笔记

摘要:您可通过编程方式在您的计算机上创建文件夹、子文件夹和子文件夹中的文件,并将数据写入文件。 public class CreateFileOrFolder { static void Main() { // Specify a name for your top-level folder. strin 阅读全文
posted @ 2016-12-05 13:39 Hxxxxxxyyyyyy 阅读(195) 评论(0) 推荐(0)
摘要:在 .NET Framework 中,可以使用以下类来访问文件系统信息: System.IO.FileInfo System.IO.DirectoryInfo System.IO.DriveInfo System.IO.Directory System.IO.File System.IO.FileI 阅读全文
posted @ 2016-12-05 13:35 Hxxxxxxyyyyyy 阅读(124) 评论(0) 推荐(0)
摘要:词组“循环访问目录树”的意思是在指定的根文件夹下,访问每个嵌套子目录中任意深度的所有文件。 您不必打开每一个文件。 可以只检索 string 形式的文件名或子目录名,或者可以检索 System.IO.FileInfo 或 System.IO.DirectoryInfo 对象形式的其他信息。 最简单的 阅读全文
posted @ 2016-12-05 13:32 Hxxxxxxyyyyyy 阅读(209) 评论(0) 推荐(0)