Exporting Mathematica Print[] Output to a .txt file
I have a large Mathematica notebook that uses Print[] commands periodically to output runtime messages. This is the only output (aside from exported files) that this notebook generates. Is there any way I can automate the export of this output to a .txt file without having to re-write the Print[] commands? rcollyer According to the documentation , Print outputs to the $Output channel which is a list of streams. So, at the beginning of the notebook, strm = OpenWrite["output.log"]; AppendTo[ $Output, strm ]; and at the end of the notebook Close[strm]; Note, if execution is interrupted prior to