Writes all console output to "output.txt" file.