MathGroup Archive 2001

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

Search the Archive

Re: integer to string??

  • To: mathgroup at smc.vnet.net
  • Subject: [mg30964] Re: [mg30940] integer to string??
  • From: Tomas Garza <tgarza01 at prodigy.net.mx>
  • Date: Fri, 28 Sep 2001 03:55:16 -0400 (EDT)
  • References: <200109270617.CAA01155@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Look at the response to [mg30939] where a very similar problem was posed. In
the code below observe the Export[] part where an integer (converted to
string) is string-joined to the file name.

 For[j=1,j<4,j++,
   {franc={};
       For[i=1,i<10,i++,
         {franc=Append[franc,j*i]};
        ];
      Export["franc"<>ToString[j]<>".dat",franc,"CSV"] };
  ]

Tomas Garza
Mexico City

----- Original Message -----
From: "Richard" <wzn at jongnederland.nl>
To: mathgroup at smc.vnet.net
Subject: [mg30964] [mg30940] integer to string??


> Hi all,
>
> Is it possible to append an integer to a string? For example in a for-loop
> i'm trying to create the strings: file1, file2, file3, etc. How can I do
> this by appending a counter (i) to the string filee.
>
> Thanx !!,
> WJ
>
>
>
>
>



  • Prev by Date: RE: integer to string??
  • Next by Date: Re: FileName and Shell Command
  • Previous by thread: integer to string??
  • Next by thread: Re: integer to string??