您的位置:首页 > 其它

StreamReader读取文件出现乱码的解决办法

2008-06-28 15:25 411 查看
StreamReader sr = new StreamReader(aFile,Encoding.Default)就可以解决

2

3实例代码。输出指定文件下的内容

4

5using System;

6using System.Collections.Generic;

7using System.Text;

8using System.IO;

9

10namespace ConsoleApplication15

11

29
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: