in reply to File append not working. Any help?

Are you sure the file has any contents? Try adding a sleep after the first close and inspect it. Also, "some operations" might just leave the file intact, but we don't know, you haven't shown them.

Are you sure localtime can return 0-3-2015? If so, shouldn't the check be present in the second part of the code, too? Also, when you use the same code in several places, think subroutine.

لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ