Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
1998
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 1998

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: writing to a file


  • To: mathgroup@smc.vnet.net
  • Subject: [mg10271] Re: writing to a file
  • From: "P.J. Hinton" <paulh@wolfram.com>
  • Date: Sat, 3 Jan 1998 05:07:21 -0500
  • Organization: "Wolfram Research, Inc."
  • References: <68cssu$a9r@smc.vnet.net>

On 31 Dec 1997 lichtner@swri.edu 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           paulh@wolfram.com Wolfram
Research, Inc.                  http://www.wolfram.com/~paulh/
Disclaimer: Opinions expressed herein are those of the author alone.




  • Prev by Date: Re: a problem applying Rule
  • Next by Date: Re: writing to a file
  • Prev by thread: Re: writing to a file
  • Next by thread: Re: writing to a file