using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
namespace ASC2
{
class Program
{
static void Main(string[] args)
{
string path = @"d:/abc.txt";
StreamReader sr = new StreamReader(path,Encoding.Default);
Console.WriteLine(sr.ReadToEnd());
Console.ReadKey();
}
}
}
D盘有一个编码格式为ANSI格式的文本文件abc.txt