Re: list of file names
- To: mathgroup at smc.vnet.net
- Subject: [mg44863] Re: list of file names
- From: "Steve Luttrell" <luttrell at _removemefirst_westmal.demon.co.uk>
- Date: Thu, 4 Dec 2003 03:04:21 -0500 (EST)
- References: <bqkb9o$hlr$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
This will generate a list of the filenames from root000.dat up to root999.dat. (StringJoin["root", ToString[#1], ".dat"] & ) /@ Table[PaddedForm[i, 3, NumberPadding -> {"0", "0"}, SignPadding -> True, NumberSigns -> {"", ""}], {i, 999}] This uses PaddedForm with appropriate arguments to generate the 3-digit numbers, which is documented in the Further Examples section of PaddedForm in the Help browser. -- Steve Luttrell West Malvern, UK "Flurchick, Kenneth M" <FLURCHICKK at MAIL.ECU.EDU> wrote in message news:bqkb9o$hlr$1 at smc.vnet.net... > GentleBeings > I want to create a list of file names > rootXXX.dat > where XXX is an integer fixed width > Don't quite see how > kenf >