code: public String readAll() throws IOException {
  
          StringBuilder sb = new StringBuilder();
          String line;
          while ((line = readLine()) != null) {
              sb.append(line);
          }
  
          return sb.toString();
      }
docs: Reads all lines and return as a String.
  
  @return The String.
  
  @throws IOException If an I/O error occurs.