code: public static String readFileContent(String filename) throws FileNotFoundException, IOException {
          BufferedReader reader = new BufferedReader(new FileReader(filename));
          StringBuilder content = new StringBuilder();
          String line;
          final String eol = System.getProperty("line.separator");
          while ((line = reader.readLine()) != null) {
              content.append(line);
              content.append(eol);
          }
          reader.close();
          return content.toString();
      }
docs: Reads file content.
  
  @param filename name of the file to read
  @return string containing the file content
  @throws java.io.FileNotFoundException
  @throws java.io.IOException