What is the most elegant way to put each line of text (from the text file) into LinkedList (as String object) or some other collection, using Commons or Guava libraries.
They are pretty similar, with Commons IO it will look like this:
List lines = FileUtils.readLines(new File("file.txt"), "UTF-8");
Main advantage of Guava is the specification of the charset (no typos):
List lines = Files.readLines(new File("file.txt"), Charsets.UTF_8);