[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Simple number formatting problem



Trivial problem, no doubt, but I've never been able to get my brane
around formatting options.

I have a list of files, with the extension .01, .02, .03 ... .12. The
preceding portion is indentical in all cases.

I'd like to be able to load these in a loop, but I first need to convert
the counter value into this format.

My current, and very ugly, technique is to have an array filled with
['01', '02', ... '12'], and then reference the appropriate entry. It
works, but I don't like it.

Any ideas?


Simon