Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • 1
    Line breaks are not EOF. Perhaps post your reading code and the exception it is throwing? Commented Mar 20, 2011 at 22:25
  • I agree with the above comment from Brian R., without the stack trace it's hard to tell what the problem is. Also, I'm not sure why you would need to use a DataInputStream to read HTML. That is for reading Java primitive types (binary) mostly. If you want to read line-by-line, BufferedReader is a better (non-deprecated) choice. Commented Mar 20, 2011 at 22:33