MathGroup Archive 2004

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

Search the Archive

Re: padding numbers in front of uniquely generatd names


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