0

Is there really a reason when you would NOT use BufferedReader at all when reading text? I was trying to look for disadvantages but I can't seem to find any.

The reason I am asking is I would want to guarantee using BufferedReader right away whenever we encounter reading text files in our projects.

superigno
  • 994
  • 2
  • 12
  • 24
  • Take a look on [this](https://stackoverflow.com/questions/9246784/disadvantage-of-filechannel-bufferedreader-reader) – samabcde Mar 31 '20 at 05:01
  • It's BufferedWriter. And IMO you won't really be losing data in case of a program crash cos it's still in a buffer, you still actually have the actual source. – superigno Mar 31 '20 at 05:10
  • 1
    No, there isn't a reason. – user207421 Mar 31 '20 at 06:06
  • There are some tricks to keep in mind when processing text files, but those tricks have nothing to do with BufferedReader, or Scanner. They have to do with the nature of text files that have line breaks in the middle of sentences and paragraphs. – Gilbert Le Blanc Mar 31 '20 at 06:37

0 Answers0