Reads the files from the list generated by openDir(). readDir() takes the first file or directory in the internal list generated by OpenDir() method and associates the file or directory to the I/O file object in the file_obj parameter. Then, readDir() removes the first file or directory from the internal list and a subsequent call to readDir() associates the next file or directory in the internal list to file_obj. Each call to readDir() takes the file or directory in the internal list, associates it with file_obj, then removes the file or directory from the list. When no files/directories remain, readDir() returns a 0.
readDir(clFile *file_obj);
Parameter |
Description |
---|---|
file_obj |
Pointer to the I/O file object to associate with the file or directory read from the list. |
Integer. Returns the following if successful:
ISFILE – read a file.
ISDIR – read a directory.
NOEXIST – deleted a file since the last time that openDir() was called.
Returns 0, indicating that an error occurred or an absence of files in the list.
Pointer to object |
Object |
---|---|
|
|
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |