How do I redirect STDOUT into a file?

To do this, you need to set the Redirect STDOUT and STDERR to the file option on the Advanced tab to point to the file you want STDOUT to be redirected to.