in reply to A bizarre way to get a list of filenames
(His question was "how do I add text files to this list?"... answer: make 2 lists & join them.. )
There is also the push function if you would like to push items or a list onto the end of the array. Unshift will add to the beginning.