posts - 124,  comments - 29,  trackbacks - 0
 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 天书 阅读(195) 评论(0)  编辑 收藏 引用

只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理



<2009年2月>
25262728293031
1234567
891011121314
15161718192021
22232425262728
1234567

常用链接

留言簿(5)

随笔档案

文章分类

文章档案

好友的Bolg

搜索

  •  

最新评论

阅读排行榜

评论排行榜