Sending the output to a file