readDirectory

Read names of a directory (POSIX functions opendir, readdir, closedir)

Syntax

names = readDirectory(directory, nNames)

Inputs (2)

directory

Type: String

Description: Name of the directory from which information is desired

nNames

Type: Integer

Description: Number of names that are returned (inquire with getNumberOfFiles)

Outputs (1)

names

Type: String[nNames]

Description: All file and directory names in any order from the desired directory