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 mathematica list to a file

  • To: mathgroup at smc.vnet.net
  • Subject: [mg14934] Re: [mg14921] writing mathematica list to a file
  • From: Jurgen Tischer <jtischer at col2.telecom.com.co>
  • Date: Fri, 27 Nov 1998 03:49:31 -0500
  • Organization: Universidad del Valle
  • References: <199811252248.RAA26529@smc.vnet.net.>
  • Sender: owner-wri-mathgroup at wolfram.com

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