上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 69 下一页

2019年1月11日

摘要: 实现效果: 知识运用: File类的OpenWrite方法 //实现打开现有文件以进行写入 public static FileStream OpenWrite (string path) Encoding抽象类的GetBytes方法 //将指定的字符串中的所有字符编码为一个字节序列 public 阅读全文

posted @ 2019-01-11 00:59 努力成长静待花开 阅读(1713) 评论(0) 推荐(0) 编辑

2019年1月10日

摘要: 实现效果: 知识运用: File类的OpenRead方法 //实现打开现有文件以进行读取 public static FileStream OpenRead(string path) FileStream类的Read方法 //实现从流中读取字节块并将该数据写入给定的缓冲区 public overri 阅读全文

posted @ 2019-01-10 22:47 努力成长静待花开 阅读(4210) 评论(0) 推荐(0) 编辑

摘要: 实现效果: 知识运用: File类的CreateText方法 StreamWriter类的WriteLine方法 实现代码: 阅读全文

posted @ 2019-01-10 22:01 努力成长静待花开 阅读(770) 评论(0) 推荐(0) 编辑

摘要: 实现效果: 知识运用: File类的CreateText方法 //创建或打开一个文件用于写入UTF-8编码的文本 public static StreamWriter CreateText (string path) //f返回一个StreamWriter对象 它使用UTF-8编码写入指定文件 St 阅读全文

posted @ 2019-01-10 13:11 努力成长静待花开 阅读(183) 评论(0) 推荐(0) 编辑

2019年1月9日

摘要: 实现效果: 知识运用: DirectoryInfo类的GetFiles方法 //返回当前文件夹的文件列表 public FileInfo[] GetFiles() Directory类的CreateDirectory方法 //在指定路径中创建文件夹 public static DirectoryIn 阅读全文

posted @ 2019-01-09 21:13 努力成长静待花开 阅读(593) 评论(0) 推荐(0) 编辑

摘要: 实现效果: 知识运用: Directory类的GetParent方法 //检索指定路径的付文件夹 包括绝对路径和相对路径 public static DirectoryInfo GetParent (string path) 实现代码: 阅读全文

posted @ 2019-01-09 19:50 努力成长静待花开 阅读(696) 评论(0) 推荐(0) 编辑

摘要: 实现效果: 知识运用: Directory类的GetLogicalDrives方法 //检索计算机上的逻辑分区 public static string[] GetLogicalDrives() GetDirectories方法 和GetFiles方法 实现代码: 阅读全文

posted @ 2019-01-09 19:09 努力成长静待花开 阅读(360) 评论(0) 推荐(0) 编辑

2019年1月8日

摘要: 实现效果: 知识运用: DirectoryInfo类的Delete方法 public override voie Delete() //文件夹非空会报错 public void Delete (bool recursive) //是否递归删除 实现代码: 阅读全文

posted @ 2019-01-08 22:14 努力成长静待花开 阅读(106) 评论(0) 推荐(0) 编辑

摘要: 实现效果: 知识运用: DirectoryInfo类的MoveTo方法 public void MoveTo (string destDirName) 实现代码: 阅读全文

posted @ 2019-01-08 13:32 努力成长静待花开 阅读(132) 评论(0) 推荐(0) 编辑

2019年1月7日

摘要: 实现效果: 知识运用: DirectoryInfo类的Create方法 string对象的EndsWith方法 实现代码: 阅读全文

posted @ 2019-01-07 23:42 努力成长静待花开 阅读(122) 评论(0) 推荐(0) 编辑

上一页 1 ··· 37 38 39 40 41 42 43 44 45 ··· 69 下一页