MathGroup Archive 2001

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

Search the Archive

Re: integer to string??

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

Try the following:

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

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



"Richard" <wzn at> wrote in message news:<9ouhp1$1b5$1 at>...
> 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??