MathGroup Archive 2004

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

Search the Archive

Re: using file txt in mathematica


The operator !! is for displaying file content.

If you want to save your data, use >> with no special formatting :


a = {1,2,3,4}{5,6,7,8}{9,10,11,12}{13,14,15,16}

[ Are you sure you want this ? After evaluation is will give {585, 1680, 3465, 
6144}
If you want a matrix, write something like :
a={{1,2,3,4},{5,6,7,8}, etc.
]

This saves the data :
a>>"a.txt"

Then :

a=<<"a.txt"

?a
Global`a

a={585, 1680, 3465, 6144}

On 2004 07 18 14:09, paolo wrote:
  > a = {1,2,3,4}{5,6,7,8}{9,10,11,12}{13,14,15,16}

-- 
Puissance d'un coton-tige : deux ouates ...


  • Prev by Date: Why aboluteoptions doesn't work here?
  • Next by Date: RE: FindRoot s all
  • Previous by thread: using file txt in mathematica
  • Next by thread: Re: using file txt in mathematica