posted @ 2019-01-07 23:00 努力成长静待花开 阅读(223) 评论(0) 推荐(0)
摘要:
实现效果: 知识运用: Environment类的CurrentDirectory属性 //获取或设置当前工作目录的完全限定路径 public static string CurrentDirectory {get; set;} 实现代码: 阅读全文
摘要:
实现效果: 知识运用: Application类的StartupPath属性 public static string StartupPath {get;} 实现代码: 阅读全文
posted @ 2019-01-07 22:49 努力成长静待花开 阅读(120) 评论(0) 推荐(0)
摘要:
实现效果: 知识运用: Path类的GetTempPath方法 public static string GetTempPath () 实现代码: 阅读全文
posted @ 2019-01-07 22:40 努力成长静待花开 阅读(240) 评论(0) 推荐(0)
摘要:
实现效果: 知识运用: DirectoryInfo类的CreationTion属性 public DataTime CreationTime {get; set;} 实现代码: 阅读全文
posted @ 2019-01-07 22:26 努力成长静待花开 阅读(612) 评论(0) 推荐(0)
摘要:
实现效果: 知识运用: FileStream 和BinaryReader 及BinaryWriter类 实现代码: 阅读全文
posted @ 2019-01-07 20:05 努力成长静待花开 阅读(494) 评论(0) 推荐(0)
摘要:
实现效果: 知识运用: FileStream BinaryReader类 //用特定的编码将基元数据类型读作二进制值 其构造函数主要使用UTF8Encoding初始化类实例 public BinaryReader(Stream input) BinaryReader类的ReadBytes方法 //从 阅读全文
posted @ 2019-01-07 18:53 努力成长静待花开 阅读(1111) 评论(0) 推荐(0)
摘要:
实现效果: 知识运用: API函数SHGetFileInfo //获取包含在可执行文件或Dll中的图标数或图标资源 [DllImport("shell32.dll", EntryPoint = "SHGetFileInfo")] public static extern IntPtr SHGetFi 阅读全文
posted @ 2019-01-06 22:37 努力成长静待花开 阅读(1082) 评论(0) 推荐(0)
摘要:
实现效果: 知识运用: StreamReader类用来实现TextReader抽象类 使其以一种特定的编码从字节流中读取字符 其ReadToEnd方法用来从当前流的当前位置到末尾读取流 public override string ReadToEnd() //如果当前位置位于流的尾端 则返回空字符串 阅读全文
posted @ 2019-01-05 22:38 努力成长静待花开 阅读(203) 评论(0) 推荐(0)
摘要:
实现效果: 知识运用: File类的move方法 判断是否可以移动 实现代码: 阅读全文
posted @ 2019-01-05 22:03 努力成长静待花开 阅读(217) 评论(0) 推荐(0)
浙公网安备 33010602011771号