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