MathGroup Archive 1998

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

Search the Archive

Re: writing mathematica list to a file


Hi Violeta,

tt=Table[ { i , i^2 } , { i , 1 , 6 } ];

str=OpenWrite["test.dat"];
WriteString[str,PaddedForm[TableForm[tt],7]]; Close[str];

I added the PaddedForm to have the numbers right aligned, you may want
it another way.

Jurgen

Violeta Gotchev wrote:
>
> Can someone tell me how to write a list created with mathematica (for
> example: Table[ { i , i^2 } , { i , 1 , 6 } ]         ) to a file where
> the data is in two columns without other symbols? Thanks,
> Violeta


  • Prev by Date: Background Window?
  • Next by Date: Re: Many data points = frustration
  • Previous by thread: writing mathematica list to a file
  • Next by thread: Re: writing mathematica list to a file