Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2004
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

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

Search the Archive

Re: padding numbers in front of uniquely generatd names

  • To: mathgroup at smc.vnet.net
  • Subject: [mg48294] Re: padding numbers in front of uniquely generatd names
  • From: bghiggins at ucdavis.edu (Brian Higgins)
  • Date: Sat, 22 May 2004 03:04:25 -0400 (EDT)
  • References: <c8kd3j$mri$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

Sean,

Is this what you want?

Table[ToString[ PaddedForm[i, 3,
       NumberPadding -> "0"]] <> "-Photo.jpg", {i, 1, 20}]

{0001-Photo.jpg, 0002-Photo.jpg, 0003-Photo.jpg, 0004-Photo.jpg, 
0005-Photo.jpg, 0006-Photo.jpg, 0007-Photo.jpg, 0008-Photo.jpg, 
0009-Photo.jpg, 0010-Photo.jpg, 0011-Photo.jpg, 0012-Photo.jpg, 
0013-Photo.jpg, 0014-Photo.jpg, 0015-Photo.jpg, 0016-Photo.jpg, 
0017-Photo.jpg, 0018-Photo.jpg, 0019-Photo.jpg, 0020-Photo.jpg}


Cheers,

Brian


  • Prev by Date: Fractal Geometry--> Levy Flights
  • Next by Date: Compile
  • Previous by thread: padding numbers in front of uniquely generatd names
  • Next by thread: Re: padding numbers in front of uniquely generatd names