@DirFiles

Parent Previous Next

@DirFiles.

Creates an array of strings where each item contains the name of a file in the directory.


Syntax.


 @DirFiles(String path; Boolean fullPath) : String[]

 


Arguments:


Example:


 //Assume this directory contains 3 files.

 String dir := "c:\test";


 String str[] := @DirFiles(dir, True);


 //Now str[] ~ ["c:\test\file1.txt",

 //             "c:\test\file2.txt",

 //             "c:\test\file3.txt"]


 String str[] := @DirFiles(dir, False);


 //Now str[] ~ ["file1.txt",

 //             "file2.txt",

 //             "file3.txt"]