Parameters & Returns
Parameters
Returns
Quick Summary
Opens a directory for reading and returns a directory handle.
Takes a directory path.
Returns a directory handle, or 0 if the path is null, the directory doesn't exist, or is empty.
Technical Exegesis...
Reads all files and subdirectories from the specified directory path and returns a directory handle. Returns 0 if the path is null, the directory doesn't exist, or is empty.
Automatically skips "." and ".." entries. Use fileMoreFiles and fileNextFile to iterate through the entries. Always close the directory with fileCloseDir when finished.