摘要: //收集要写入的内容 string content = textBox1.Text.Trim(); //1.创建StreamWriter类对象,并指定要写入的文件路径 StreamWriter sw = new... 阅读全文
posted @ 2015-11-06 17:28 圣淘程序猿 阅读(3416) 评论(0) 推荐(0) 编辑
摘要: //1.创建StreamReader对象,并指定要读取的文件,与编码格式 StreamReader sr = new StreamReader(@"Content.txt", Encoding.UTF8); //2.调用Stream... 阅读全文
posted @ 2015-11-06 17:06 圣淘程序猿 阅读(1642) 评论(0) 推荐(0) 编辑
摘要: //获取文本框中的文本内容 string content = textBox1.Text.Trim(); //1.创建FileStream对象,指定文件路径,以及打开方式,文件放在bin/debug/Content.txt ... 阅读全文
posted @ 2015-11-06 17:02 圣淘程序猿 阅读(1028) 评论(0) 推荐(0) 编辑