Write time, steps, results to file