0

I have a large program in mathematica, and generate many outputs. However, I don't want those outputs to be visible in my program and I want to save the outputs in text or any other format. Moreover I also want to call any of the outputs and perform some specific operations on it (plotting, squaring etc.) Please guide me in this respect.

zenith
  • 117
  • 6
  • Strongly related: "[Temporarily redirect the output of `Print` to a second file](http://mathematica.stackexchange.com/a/29238/280)." This solution also redirects standard output to a file. – Alexey Popkov Jun 07 '14 at 13:15

2 Answers2

0

You need to use the Export function. If you want the output suppressed, use semicolons. See the help file on Export for more.

(I don't know what else to say..)

Kellen Myers
  • 362
  • 1
  • 6
0

Export function is the way to go.

For example, if you ever needed 1 billion digits of Pi:

Export["pi-to-1B.txt", N[[Pi], 1000000000]];