I have a file named returns.txt
I have the sql working correctly, if i just use
it lists everything I would expect.
However this doesnt seem to work.
Have I missed something, or is that not the way to write to a file?
I have the sql working correctly, if i just use
Code:
print $orderId;
print "<br>";
it lists everything I would expect.
However this doesnt seem to work.
Code:
open (RETURNFILE, '>returns.txt');
print RETURNFILE $orderId
clode (MYFILE);
Have I missed something, or is that not the way to write to a file?