Re: list of file names
- To: mathgroup at smc.vnet.net
- Subject: [mg44857] Re: list of file names
- From: Mariusz Jankowski<mjankowski at usm.maine.edu>
- Date: Thu, 4 Dec 2003 03:04:14 -0500 (EST)
- Organization: University of Southern Maine
- References: <bqkb9o$hlr$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
The following will convert any integer i in the range 0 to 999 to a fixed length string (3 digits) with leading zeros: StringJoin @@ ToString /@ IntegerDigits[i, 10, 3] Next, use Table to produce the desired list, for example, Table[ StringJoin["root", StringJoin@@ToString /@ IntegerDigits[i, 10, 3], ".dat"], {i, 5}] Mariusz >>> Flurchick, Kenneth M<FLURCHICKK at MAIL.ECU.EDU> 12/3/2003 4:44:24 AM >>> 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