c# 读/写文件(各种格式)
摘要:
最简单的: --------写 //content是要写入文本的字符串 //(@txtPath + @"\" + rid + ".txt");要被写入的TXT StreamWriter sw = new StreamWriter(@txtPath + @"\" + rid + ".txt"); sw.WriteLine(content); sw.Close(); ---------读 ... 阅读全文
posted @ 2008-01-16 10:02 曾伟 阅读(2028) 评论(0) 推荐(0)
浙公网安备 33010602011771号