Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# list files in directory

string[] allFiles = Directory.GetFiles("path/to/dir", "*.*",   SearchOption.AllDirectories);
string[] txtFiles = Directory.GetFiles("path/to/dir", "*.txt", SearchOption.TopDirectoryOnly);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #list #files #directory
ADD COMMENT
Topic
Name
2+3 =