Sending output to an external file