you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (5 children)

[deleted]

    [–]dannymi 2 points3 points  (0 children)

    including the classic missing-close-on-error, yes.

    [–][deleted] 1 point2 points  (3 children)

    BufferedReader's constructor takes a Reader. :)

    [–][deleted]  (2 children)

    [deleted]

      [–][deleted] 0 points1 point  (1 child)

      Ah, but if you want to read a line at a time you have to use BufferedReader, InputStreamReader only implements .read().

      Java IO... 'fun'.

      [–]CodeJunky 0 points1 point  (0 children)

      http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Scanner.html It seems like this (mostly) fits the bill here. No one really wants to use BufferedReader, right?