output results to result file