posted @ 2010-12-30 20:57 lichen396116416 阅读(3065) 评论(0) 推荐(0)
摘要:
与AppentAllText方法类似,WreiteAllText可以将指定的字符串直接写入文件,WriteAllText方法的声明如下创建一个新文件在其中写入指定的字符串数组,然后,关闭该文件,如果目标存已存在,则改写文件public static void WriteAllText(string path ,string contents)创建一个新文件在其中写入指定编码的字符串数组,然后,关闭该文件,如果目标存已存在,则改写文件public static void WriteAllText(string path ,string contents, Encoding encoding )下 阅读全文
浙公网安备 33010602011771号