摘要: 《C# 读取文本内容,在Dev控件中显示数据》一文是我在博客园写的第一篇随笔,多谢大家关注。现在继续,我已经自己解决了自己的两个问题,且有小小改动。这是改进后运行的效果:第一,读取第三行以后额数据并显示。简单的就是定义个计数器count,先while循环读取文本,当count为3时才开始真正的读取我们需要的内容。int count = 0; while (strLine != null) { strLine = sr.ReadLine(); count++; if (count == 3) { while (strLine != null) { string[] strArry = strLi 阅读全文
posted @ 2011-04-23 11:10 十一_x 阅读(2108) 评论(2) 推荐(1) 编辑