Come on mhr!
I already answered your similar if not almost identical question here:
http://www.codeproject.com/Questions/132988/Text-file-to-SQL-import-cells-problem.aspx
I thought you'd learn something from that.
Well, the answer
most probably might be this: The delimeter in your text file is not a comma as the last time. It might be semicolon or what ever.
Look into the textfile you're trying to process and you'll see.
Modification:
This is more likely the cause: Line is null since you're trying to read until line is equal to "". If there isn't an empty line in your file this may very well happen.
while(!String.IsNullOrEmtpy(line = sr.ReadLine()))
{
...
...
better check for line being either empty or null, as you'll get a null reference exception if you try to do a line.Split(...) when line is actually null.
End of modification
Crestfallen,
Manfred