closedir(HANDLE)
Closes the directory HANDLE.
opendir(HANDLE, dirname)
Opens the directory dirname and gives it the new directory HANDLE.
readdir(HANDLE)
Reads the list of names associated with the directory handle HANDLE.