Re: writing to a file
- To: firstname.lastname@example.org
- Subject: [mg10271] Re: writing to a file
- From: "P.J. Hinton" <email@example.com>
- Date: Sat, 3 Jan 1998 05:07:21 -0500
- Organization: "Wolfram Research, Inc."
- References: <firstname.lastname@example.org>
On 31 Dec 1997 email@example.com wrote: > I am using Mathematica 3.0.0 running under NeXTSTEP 3.3. I would like to > be able to write a sequence of numbers to a file formatted so that the > numbers are separated by e.g. spaces. For example: > > 0.01 0.000846 0.000641 > 0.02 0.000827 0.000864 > 0.03 0.000851 0.000944 > 0.04 0.000881 0.000974 > etc. > > I find that with the new version of Mathematica that Print does not work > because each row is enclosed in a cell. I have not been able to get > Write to insert spaces between numbers in a row---which I would think > must be rather trivial. Any help would be greatly appreciated. ...Peter There is a solution for doing this at URL: http://www.wolfram.com/support/InputOutput/ExternalFiles/WriteMatrix.html -- P.J. Hinton Mathematica Programming Group firstname.lastname@example.org Wolfram Research, Inc. http://www.wolfram.com/~paulh/ Disclaimer: Opinions expressed herein are those of the author alone.