posted 24 years ago
There was some strange garbled stuff mixed in with your code; I cleaned it up for you. I hope I didn't take out anything that was supposed to be there. Anyway, it looks like the most likely problem is that in your while loop, you use readLine() twice but only check for a null once. You probably want to fix this to read only one line each time through the loop, check if that line is null, and then do something with that line (without reading another line - save that for the next time through the loop).
Also, in your catch IOException, you will get much better information if something does go wrong if you put in something like:
<code><pre> System.out.println("Error reading file: " + e.getMessage());</pre></code>
or even
<code><pre> e.printStackTrace();</pre></code>
[This message has been edited by Jim Yingst (edited February 21, 2001).]
"I'm not back." - Bill Harding, Twister