code: public static String getFileContents(String pFileName) throws IOException{
           String fileContents = null;
           InputStream is = new FileInputStream(pFileName);
           BufferedReader reader = new BufferedReader(new InputStreamReader(is));
           StringBuffer xml = new StringBuffer();
           String aLine = null;
           while((aLine = reader.readLine()) != null){
             xml.append(aLine);
             xml.append("\n");
  
           }
          reader.close();
          fileContents = xml.toString();
          return fileContents;
      }
docs: * Method that returns the file contents
  @param pFileName
  @return FileContents