From: Renaud HEBERT Date: 2001-09-07T16:05:32+09:00 Subject: [ruby-talk:20973] Re: creating lots of files Joseph McDonald wrote: > Does this look like a good way to do it (assuming that each file has > a number as a name starting at 1 and incrementing for each new file): This is not Ruby related but if you ever want to list the content of a directory, maybe it would be better if you make sure that the alphabetical order of your filename is the same as the numerical order. That is to say, do not use 1,2,3,4,5,6,7,8,9,10,.. because if you list those file you'll get 1 10 1.... 2 Using filename 00000001,00000002...,00000010,00000011,00000012,.. will solve this. Of course it is only usefull if you need to list the content of a directory.. -- Renaud Hebert phone: (33) 01 30 77 59 92 mailto:renaud.hebert@alcatel.fr