标签:style color strong 文件 os 问题
/// <summary>
/// 获取到过滤字TXT,将其放入到字符串中
/// </summary>
public static void LoadIllegalchar()
{
string fileName = AppDomain.CurrentDomain.BaseDirectory.ToString() + "Filter.txt";
if (File.Exists(fileName))
{
StreamReader sr = new StreamReader(fileName, Encoding.UTF8); //这句话就不乱码了;
LimitedChar = sr.ReadLine();
}
}
标签:style color strong 文件 os 问题
原文地址:http://www.cnblogs.com/wang-123/p/3817112.html