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