Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2009

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

Search the Archive

Re: How to change name of the file in a Do loop

  • To: mathgroup at smc.vnet.net
  • Subject: [mg99951] Re: How to change name of the file in a Do loop
  • From: mike.honeychurch at gmail.com
  • Date: Wed, 20 May 2009 04:57:46 -0400 (EDT)
  • References: <guu2e3$675$1@smc.vnet.net>

On May 19, 5:42 am, lautaro.verg... at usach.cl wrote:
> Dear People:
>
> Can someone help me with the following?
>
> Within a Do loop I want tables to be written with different names in .dat=
 files. Does anyone knows how to make that the name of the .dat file change=
s within the Do loop?
>
> Thanks in advance.
>
> Best regards,
>
> Lautaro Vergara

Do[result = Table[x^i, {4}];  Export["file" <> ToString[i] <> ".dat",
result], {i, 3}]


  • Prev by Date: Re: How to change name of the file in a Do loop
  • Next by Date: Re: Wolfram|Alpha Lookup Tool for Mathematica
  • Previous by thread: Re: How to change name of the file in a Do loop
  • Next by thread: Re: How to change name of the file in a Do loop