Failed to open output file Error

Hi guys,
I Have written a script,In that it will call another file which contains the sql quaries.

while wxecuting that I am getting the below exception
01/16|06:28:06:16800: Operating System Error|Failed to open output file

Can anybody help me about this,,Its urgent