/// <summary> /// read one line until end (return null;) /// </summary> /// <returns></returns> public string ReadOneLine() { if (curIndex == 0 || !string.IsNullOrEmpty(curLine)) { curLine = fileStreamReader.ReadLine(); if (!string.IsNullOrEmpty(curLine)) { this.curIndex++; FileRecord fr = new FileRecord(); this.curLineFileSize = fr.GetSize(curLine); return(this.curLine); } return(null); } else { return(null); } }