0

Possible Duplicate:
Reading a text file in java

I have a generic text file, which can be composed of text data and numerical values, like an article. It can have multiple paragraphs/lines and have various types of delimiters. My general purpose is to tokenize this text file into a string array. I am quite confusing on how to handle this in Java, should I use “scanner” or “Bufferedreader”?

Community
  • 1
  • 1
user288609
  • 12,465
  • 26
  • 85
  • 127

1 Answers1

0

Either would be fine. If you're just reading lines, Scanner might be a bit of overkill.

Ernest Friedman-Hill
  • 80,601
  • 10
  • 150
  • 186