Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: Export lists

  • To: mathgroup at smc.vnet.net
  • Subject: [mg89936] Re: Export lists
  • From: Oliver Ruebenkoenig <ruebenko at uni-freiburg.de>
  • Date: Wed, 25 Jun 2008 06:22:51 -0400 (EDT)
  • References: <g3q7tu$ata$1@smc.vnet.net>

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