clearing the log file

I added code to clear the log file each time the program runs