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.
I'm not sure if you only want to know how to do this via Guava or Commons IO, but since Java 7 this can be done via java.nio.file.Files.readAllLines(Path path, Charset cs) (javadoc).
List allLines = Files.readAllLines(dir.toPath(), StandardCharsets.UTF_8);
Since this is part of the Java SE it does not require you to add any additional jar files (Guava or Commons) to your project.