Take the tour ×  I am having little hard time sending output of
Information[] command to a text file.  related question How to
write output to an external text file in addition to the
standard output stream?  I'd like to find what is the correct
way to do this. I tried the following 3 things, including what
is in the above link, but nothing worked for me. I am using
version 8.0.4 on windows 7.  s = OpenWrite["test.txt",
FormatType -> OutputForm] (*without FormatType also error*)
$Post = Write[#, s] & Information["DSolve", LongForm -> False]
$Post =.  second attempt  s = OpenWrite["test.txt"] $Output = s
Information["DSolve", LongForm -> False]  Third attempt (using
the same solution given in the above link)  output =
OpenWrite["out.txt", FormatType -> OutputForm]; $PrePrint =
(Write[output, #]; #) &; Information["DSolve", LongForm ->
False]  I see the file out.txt gets created, but it is empty.
Nothing is written to it. Even after I close Mathematica or the
kernel, it is empty. I also get an error when I clos