DirectoryListing.GetNext Method

Reads the current directory entry as a local filename, then moves to the next file.

Note: Both the '.' and '..' automatic directory entries will be retrieved.

bool GetNext(char[] buffer, int maxlength, FileType& type)

Parameters

char[] buffer

String buffer to hold directory name.

int maxlength

Maximum size of string buffer.

FileType& type

Optional variable to store the file type.

Return Value

True on success, false if there are no more files to read.