Filling an array


Can someone please tell me how to read data in to an array. I can see how arrays work when I type them in. I would like to get a list of files in a folder and add them to an array.

Can this be done and if so how?

Best wishes


Does this do what you want to do?

set fol_ to (choose folder with prompt "Choose a folder.")
tell application "Finder" to set files_ to every file of fol_ as alias list