摘要:
以前使用的File是操作小的文本文件,用的并不常见,FileStream(操作字节),可以操作所有格式的文件,用途较广泛 下面做一个通过文件流给文件加密解密的小软件. using System; using System.Collections.Generic; using System.Compo 阅读全文
摘要:
说明:涉及到知识点:TreeView控件,递归调用, 1 先把架子搭起来 using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Draw 阅读全文
摘要:
上一篇简单介绍了File文本文件的操作,这次简单介绍Directory的操作 Directory主要用于操作文件夹 常用方法 CreateDirectory;创建一个新的文件夹 Delete;删除文件夹 Move; 剪切文件夹 Exist;判断指定文件夹是否存在 具体应用 if(!Directory 阅读全文
摘要:
1 对文件的操作-File类 常用的操作: File.Exis();判断文件是否存在 File.Create ();创建 File.Move();剪切 File.Copy();复制 File.Delete();删除 using System; using System.Collections.Gen 阅读全文
摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace 日期的转换 { //2012-12-21 //2 阅读全文