in reply to Listing a directory

opendir and readdir.