How to get OrderPrint() output to file?

 

FileWrite(handle, OrderPrint()) will direct the output from OrderPrint to the screen first and then FileWrite the number 1 to a file.


How can I get the OrderPrint() output to a file? I'm aware there are other longer ways of achieving the same thing, so my question is specifically regarding OrderPrint().