def status(iteration, elapsed_time)
      file.write("\r" + padded_line(iteration, elapsed_time))
      file.flush
    end
def status(iteration, elapsed_time)
      file.write("\r" + padded_line(iteration, elapsed_time))
      file.flush
    end
Prints a line of text to @file, after deleting the previously printed line

 @param iteration [Integer] number of iterations, out of the total, that are completed
 @param elapsed_time [Float] number of seconds passed since start