首页 >> 文摘 >> C#

关于读取文本文件的一些文摘

采集日期:2008-4-21作者:gauzxj(注:本数据由系统自动采集,内容与BHCODE无关)
关于读取文本文件的一些文摘。ReadLine() ‘读第1行 MessageBox.Show(strLine) strLine = file.ReadLine() ‘读第2行 MessageBox.Show(strLine) file.Close()StreamWriter ww= new StreamWriter(fs,System.ww.已经很完整了,另一个方法:这个方法可以扩展很多其他的应用:对于学习熟悉文件结构很有好处:System.IO.StreamReader xx=new System.IO.StreamReader("F:\\a.txt");int getB=xx.BaseStream.ReadByte();int add=1;while(getB!=-1){if(getB==13 &&xx.}getB=xx.if(getB==13 || getB ==10){ add++;
本周推荐
MORE
热点关注
MORE