in reply to Re: Writing to a File
in thread Writing to a File

It sounds like you haven't isolated the problem then.

Try adding verbose debugging output to the script that is being run as a scheduled task and see what it is doing, then reproduce the problem with a working example that demonstrates the problem.