Read Line and Split

C#:
//split
String strline=sr.ReadLine();
String[] strHeaderCol=strline.Split('\t');


//read lines
while(true)
{
    strline=sr.ReadLine();
    if(String.IsNullOrEmpty(strline))
    {
        break;
    }
    else
    {
       …
    }
}
sr.Close();
posted @ 2010-10-02 14:28  irischan  阅读(342)  评论(0编辑  收藏  举报