Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2002

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

Search the Archive

RE: 3d table or list to file

  • To: mathgroup at
  • Subject: [mg34916] RE: [mg34879] 3d table or list to file
  • From: "Annetts, Dave (E&M, North Ryde)" <David.Annetts at>
  • Date: Wed, 12 Jun 2002 02:16:23 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

Hi Shawn,

> Is it possible to save 3D lists to file to recall them later. 
>  Export/Import
> does not seem to work for lists with dimensions greater than 2

It is possible -- just write them.  For example, the following sequence
leaves tst and newt equal.
	tst = Table[{i, j, k}, {i, 5}, {j, 5, 10}, {k, 25, 30}];
	tst >> "multi.txt"

	newt = Read["multi.txt"];

The catch with this, is that your file is in 80-column wrapped input form
and so might not be particularly useful with other programs (eg. Excel).
Mostly, I find it more useful to write the file in simple columnar format
via a Do[]; loop.


  Dr. David Annetts             EM Modelling Analyst
  Tel: (+612) 9490 5416         CSIRO DEM, North Ryde
  Fax: (+612) 9490 5467         David.Annetts at
                 Include "usual_disclaimers"

  • Prev by Date: Re: PolynomialQ ?
  • Next by Date: Re: How can I turn the display into an output ?
  • Previous by thread: 3d table or list to file
  • Next by thread: Re: 3d table or list to file