Search
 
SCRIPT & CODE EXAMPLE
 

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);
Comment

PREVIOUS NEXT
Code Example
Csharp :: Animator.GotoState: State could not be found 
Csharp :: get scene name unity 
Csharp :: pause audio unity 
Csharp :: unity c# on trigger enter with specific gameobject 
Csharp :: set player position unity 
Csharp :: c# datagridview clear all rows 
Csharp :: c# how to check string is number 
Csharp :: unity movetowards 
Csharp :: c# create new thread 
Csharp :: convert int to double c# 
Csharp :: unity C# catch index out or range exception 
Csharp :: unity change play mode color 
Csharp :: C#: convert array of integers to comma separated string 
Csharp :: c# count number of occurrences in string 
Csharp :: bitmap to byte array c# 
Csharp :: c# print 
Csharp :: unity lookrotation lerp 
Csharp :: how to reference text mesh pro unity 
Csharp :: unity game sleep on hit 
Csharp :: OnCollision update unity 
Csharp :: unity mouse disapear 
Csharp :: c# separate string by a new line 
Csharp :: what is the namespace for textmesh pro 
Csharp :: add dynamically buttons in loop with events winform c# 
Csharp :: countdown timer c# unity 
Csharp :: C# metodas duomenu paemimui veiksmams ir grazinimui 
Csharp :: .NET Microsoft.dotnet-httprepl 
Csharp :: generate a random number in c# 
Csharp :: visual studio windows form exit button 
Csharp :: detect trigger in unity 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =