MathGroup Archive 2001

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

Search the Archive

Re: integer to string??

  • To: mathgroup at smc.vnet.net
  • Subject: [mg30968] Re: integer to string??
  • From: bghiggins at ucdavis.edu (Brian Higgins)
  • Date: Fri, 28 Sep 2001 03:55:22 -0400 (EDT)
  • References: <9ouhp1$1b5$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Try the following:

In[15]:=Table["file" <> ToString[i], {i, 1, 6}]

Out[15]={"file1", "file2", "file3", "file4", "file5", "file6"}

Cheers,

Brian



"Richard" <wzn at jongnederland.nl> wrote in message news:<9ouhp1$1b5$1 at smc.vnet.net>...
> 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: exporting graph in pdf file
  • Next by Date: Factorising operators??
  • Previous by thread: Re: integer to string??
  • Next by thread: Re: integer to string??