statement does not appear in the original code that you copied, and claim to be the source of the problem.
Is the output file empty, and has the date/time stamp been updated? Are you testing the
Do you not have a test system? If you don't then this might be a good time to justify having one.