http://qs321.pair.com?node_id=1152017


in reply to Re^2: check for latest file, remove and touch file?
in thread check for latest file, remove and touch file?

Assuming the file already exists, yes append mode would be better. If it doesn't already exist, then the two are equivalent. To make it more similar to touch it should be appending. You're right about that.