in reply to write to file in append mode

Replace > with >> to get append mode.

Phil