MathGroup Archive 2002

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

Search the Archive

RE: 3d table or list to file

  • To: mathgroup at
  • Subject: [mg34949] RE: [mg34879] 3d table or list to file
  • From: "Ingolf Dahl" <f9aid at>
  • Date: Sat, 15 Jun 2002 02:27:31 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

Just another method, that I like:

resultfile = "c:/restest.txt";
    StringForm["threedlist = ``;\n", InputForm[threedlist]]];

This gives a file with the content

threedlist = {1, {2, {3, 4}}};

that is written in the Mathematica language and can be read directly by the

<< "c:/restest.txt"

By using this method, by writing the output as easily readable Mathematica
files, you get easily "self-documented" files, that do not need information
about the meaning of the content stored somewhere else. (Such information is
called "Exformation" in the notation of the danish philosopher Tor
Nørretranders.) You can easily modify your Mathematica file to include more
data or comments. You can also easily interpret, read and change the file by
a text editor, or reuse the data in other ways. If you just store the data
without some labelling or comments, you cannot as easy attach more
information, or as easy change the output format, without reformatting all
data files you already have written. I have found this method with
self-documented data files very useful in storing experimental "raw data",
and also used other languages (e.g. Basic) to write such files. Then I can
experiment freely with different ways of evaluation of my raw data, without
destroying the raw data as such.

Ingolf Dahl
Chalmers University

-----Original Message-----
From: Shawn O'Connor [mailto:soconnor at]
To: mathgroup at
Subject: [mg34949] [mg34879] 3d table or list to file

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

Thank you.

  • Prev by Date: RE: Help: Why no output?
  • Next by Date: RE: Help: Why no output?
  • Previous by thread: Re: 3d table or list to file
  • Next by thread: RE: RE: 3d table or list to file