I have a file that I\'ve been reading into a List via the following method:
List doc = java.nio.file.Files.readAllLines(new File(\"/path/to/src/res
You can use Apache Commons IOUtils#readLines:
List doc = IOUtils.readLines(inputStream, StandardCharsets.UTF_8);