code: public static List<String> appendLines(List<String> result, String file, String encoding) throws IOException {
          InputStream is = new FileInputStream(file);
          try {
              return appendLines(result, is, encoding);
          } finally {
              is.close();
          }
      }
docs: Utility for loading lines from a file.
  @param result The result of the appended lines.
  @param file The file to have an input stream.
  @param encoding if null, then UTF-8
  @return filled list
  @throws IOException If there were problems opening the file for input stream.