Update the output file incrementally.