in reply to Unlink or rename?

I open a file to append ... doesnt get appended

If you don't want the data appended, why open in append mode?