code: public static String fromFile(File file) throws IOException {
          BufferedReader br = new BufferedReader(new FileReader(file));
          StringBuilder sb = new StringBuilder();
          String line = br.readLine();
  
          while (line != null) {
              sb.append(line);
              line = br.readLine();
              if (line != null)
                  sb.append(System.lineSeparator());
          }
  
          br.close();
          return sb.toString();
      }
docs: Reads the text from a text file
  
  @param file The file to read
  @return The text in that text file
  @throws IOException if the file cannot be read