Are you serious? Do you think somebody needs to think of any
ideas?
1) Use the class
System.IO.StreamReader
.
2) In cycle, use
System.IO.StreamReader.ReadLine
.
3) Before the loop, create
int lineCount = 0
;
4) Increment
lineCount
after each
ReadLine
.
5) After incrementing
lineCount
, continue to skip to next line, depending on lineCount.
6) If not skipping line, split the line like this:
string[] terms =
myLine.Split(
new char[] {' ', ',', },
System.StringSplitOptions.RemoveEmptyEntries);
Please think about your Question. You should have find it all by yourself and asked a question only if you face a problem. If you're going to keep asking questions like that, you will never complete any development.
—SA