Output results to file