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
  • 11,491
  • 24
  • 77
  • 114

1 Answers1

0

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

Ernest Friedman-Hill
  • 79,064
  • 10
  • 147
  • 183