code: public List<String> getFileLinesAsList(File f) throws IOException {
          BufferedReader br = new BufferedReader(new InputStreamReader(
              new DataInputStream(new FileInputStream(f))));
          List<String> result = new LinkedList<String>();
          String strLine;
          while ((strLine = br.readLine()) != null) {
              result.add(strLine);
          }
          br.close();
          return result;
  
      }
docs: Reads a file and returns the content as List
  
  @param f
  @return
  @throws IOException