rewinddir dirhandle
Sets the current position to the beginning of the directory for the readdir routine on dirhandle. The function may not be available on all machines that support readdir.
readdir
Copyright © 2001 O'Reilly & Associates. All rights reserved.