directory
Reads a directory and outputs to a string array a list of file names.
Users can set the file type by passing a file extension as a string.
Syntax
Initialization
SDirectory -- a string that identifies the directory to browse for files
SExtention -- Optional. Sets the desired file type. If left out, all files names will be retrieved.
Performance
SFiles[] -- a string array that holds the names of all files of a given type found in the directory.
Note
This works at i-time only and will not pick up changes made to the directory after performance has started.
Examples
This example shows how directory can be used to browse for .wav files in a fixed location. printf_i is then used to print the file names. It uses the file directory.csd.
See also
Credits
Author: Rory Walsh
2016