code: private static List<String> getData(FileReader fr, File directory) throws Exception
     {
        List<String> result = new ArrayList<String>();
  
        LineNumberReader r = new LineNumberReader(fr);
        String s = r.readLine();
        while (s != null)
        {
           if (s.indexOf("IJTRACER") != -1)
           {
              result.add(s.substring(s.indexOf("IJTRACER")));
           }
   
           s = r.readLine();
        }
  
        FileWriter fw = null;
        try
        {
           fw = new FileWriter(directory.getAbsolutePath() + "/" + "raw.txt");
           for (String data : result)
           {
              HTMLReport.writeString(fw, data);
              HTMLReport.writeEOL(fw);
           }
        }
        finally
        {
           if (fw != null)
           {
              try
              {
                 fw.flush();
                 fw.close();
              }
              catch (IOException ignore)
              {
                 // Ignore
              }
           }
        }
  
        
        return result;
     }
docs: Get data
  @param fr The file reader
  @param directory The directory
  @return The data
  @exception Exception If an error occurs