title: Java - How to read a big file word by word instead of line by line?
body: <p>I'd like to read the "text8" corpus in Java and reformat some words. The problem is, in this 100MB corpus all words are on one line. So if I try to load it with <code>BufferedReader</code> and <code>readLine</code>, it takes away too much space at once and can't handle it to separate all the words in one list/array.</p>
  
  <p>So my question: Is it possible in Java to read instead of line by line a corpus, to read it word by word? So for example because all words are on one line, to read for example 100 words per iteration?</p>