public bool IsExsitFileName(String TXTFile,String findFileName)
{
string strLine;
StreamReader sr;
try
{
sr = new StreamReader(TXTFile, Encoding.Default);
while (sr.Peek() > -1)
{
strLine = sr.ReadLine();
if (strLine.Equals(findFileName))
{
sr.Close();
return true;
}
}
sr.Close();
return false;
}
catch (Exception e)
{
throw e;
}
}
posted on 2008-10-09 16:20
天书 阅读(204)
评论(0) 编辑 收藏 引用