findfiles (<wildname> {,<directory>})
string
Directories in the local system containing files (or directories) matching a file name or wild pattern. The number of values returned is the number of directories found.
<wildname>
The file name or wild pattern being searched for.
<directory>
The directory in which
to begin the search. If this omitted, the top directory of the system drive is assumed.
Sub-directories are searched.
Returned directory names include their full directory path (with '/' separators) and a '/' terminator.
In the following statement, all the directories in the file system containing mp3 files are returned.
string fdirs[] = findfiles('*.mp3')
Functions: |