C#获取txt记事本内容,防止乱码情况 StreamReader sr = new StreamReader(@"E:人名.txt", Encoding.GetEncoding("GB2312")); string readText = sr.ReadToEnd();