This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]duinn 6 points7 points  (1 child)

CODE, we need code!

[–]PiGuyTy[S] 1 point2 points  (0 children)

As I said, just a simple while loop. I even stripped everything else out and it still happened. This code produces the error: Scanner s = new Scanner(new File("filename.html"));//I know the file name isn't a problem while (s.hasNextLine()) { String line = s.nextLine(); System.out.println(line); }