How do I append a file today and overwrite it tomorrow?
Posted: Fri Aug 03, 2012 11:38 am
Hi everybody.
I would like to have some tips about a case I have in my project.
I need to read a database daily, several times per day, and during the day I need to 'append' a file with these data and, when the day changes, the file must be overwritten and then start to 'append' it again.
PS. I can't create different files - one per day. The file must be the same: with the same name. We just overwrite it according to the date changing.
How can I make this control?
Thanks my friends.
Best regards,
I would like to have some tips about a case I have in my project.
I need to read a database daily, several times per day, and during the day I need to 'append' a file with these data and, when the day changes, the file must be overwritten and then start to 'append' it again.
PS. I can't create different files - one per day. The file must be the same: with the same name. We just overwrite it according to the date changing.
How can I make this control?
Thanks my friends.
Best regards,