日期:2014-05-18 浏览次数:20860 次
string strfromtxt = File.ReadAllText(@"C:\1.txt", Encoding.GetEncoding("GB2312")); if (strfromtxt.Contains("steven")) { MessageBox.Show("存在steven"); } else { MessageBox.Show("不存在steven"); }