directory Miscellaneous directory directory Reads a directory and outputs to a string array a list of file names. Description Reads a directory for files and passes them to a string array. Users can set the file type by passing a file extension as a string. Syntax SFiles[] directory SDirectory[, SExtention] 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. Example 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. Example of the directory opcode. See also Miscellaneous opcodes Credits Author: Rory Walsh 2016