现在的位置: 首页 > 综合 > 正文

C#中读取文件内容

2012年11月14日 ⁄ 综合 ⁄ 共 347字 ⁄ 字号 评论关闭
http://www.chinaaspx.com/comm/dotnetbbs/Showtopic.aspx?Forum_ID=6&Id=77599&PPage=1

FileStream fs=n......
FileStream fs=new FileStream("d:\\book\\book1.txt");
StreamReader sr=new StreamReader(fs,Systemt.Text.Encoding.GetEncoding("gb2312"));
rtbFile.Text=sr.ReadToEnd();

发帖时间:7/9/2004 4:24:51 PM

欢迎光临我的 Blog :
http://cn.thespoke.net/MyBlog/xrascal/MyBlog.aspx

抱歉!评论已关闭.