public static void processTextFile(String inputFile, String outputFile) throws IOException
	{
	    BufferedReader reader = new BufferedReader(new FileReader (new File(inputFile)));
	    BufferedWriter writer = new BufferedWriter(new FileWriter(new File(outputFile)));
		Pattern p = Pattern.compile("^(0[1-9]|[12][0-9]|3[01])[.](0[1-9]|1[012])[.](19|20)[0-9]{2}$");

	    String text = "";
	    String line = reader.readLine();
	    
	    while (line != null){
    		Matcher m = p.matcher(line.substring(0, 10));
	    	
	    	if(line.contains("Results of ResultWriter 'Write as Text'"))
	    	{
		    	line = reader.readLine();	
	    	}
	    	else if(m.matches())
	    	{
	    	    text = text.concat(line.substring(20) + "");
	    	    line = reader.readLine();
	    	}
	    	else
	    	{
	    		text = text.concat(line + "");
		    	line = reader.readLine();
	    	}    	
	    }
		
	    reader.close();
	    
	    writer.write(text);
	    writer.close();
	}