摘要: 文件操作FileFile类的常用静态方法:– void AppendAllText(string path, string contents),将文本contents附加到文件path中– bool Exists(string path)判断文件path是否存在– string[] ReadAllLines(string path) 读取文本文件到字符串数组中– string ReadAllText(string path) 读取文本文件到字符串中– void WriteAllText(string path, string contents)将文本contents保存到文件path中**** 阅读全文
posted @ 2011-07-04 14:01 高兴happy 阅读(404) 评论(0) 推荐(0) 编辑