I have a text file that has following content:
ac und accipio annehmen ad zu adeo hinzugehen ...
I read the text file and iterate through t
You can just use Scanner to read word by word, Scanner.next() reads the next word
try { Scanner s = new Scanner(new File(filename)); while (s.hasNext()) { System.out.println("word:" + s.next()); } } catch (IOException e) { System.out.println("Error accessing input file!"); }