MathGroup Archive 2008

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

Search the Archive

Re: Export lists


Dear Sorasak,

how about:

data = Table[RandomReal[], {4}, {2}, {2}];
fileNames =
   Table[ "fileName" <>
     ToString[PaddedForm[i, 5, NumberPadding -> {"0", "0"}]] <>
     ".dat", {i, Length[data]}];

MapThread[ Export, {fileNames, data}]

Hth,

Oliver

On Tue, 24 Jun 2008, Sorasak wrote:

> Dear All,
>
> I would like to export a series of lists to .dat files.  Each file
> corresponds to a list.   How can I do that by using a line of command
> instead of having to export them one by one?
>
> Thank you very much,
>
> K
>
>

Oliver Ruebenkoenig, <ruebenko AT uni-freiburg.de>


  • Prev by Date: Re: simple iteration question
  • Next by Date: Closing the interface with suse linux 10.2 (new info)
  • Previous by thread: Export lists
  • Next by thread: Re: Export lists