Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# retrieve files in folder

using System.IO;

string[] filePaths = Directory.GetFiles(@"c:MyDir");
// returns:
// "c:MyDirmy-car.BMP"
// "c:MyDirmy-house.jpg"

Comment

c# retrieve files in folder

string[] filePaths = Directory.GetFiles(@"c:MyDir", "*.bmp");
// returns:
// "c:MyDirmy-car.BMP"

Comment

c# retrieve files in folder

string[] filePaths = Directory.GetFiles(@"c:MyDir", "*.bmp",
                                         SearchOption.AllDirectories);
// returns:
// "c:MyDirmy-car.BMP"
// "c:MyDirFriendsjames.BMP"

Comment

PREVIOUS NEXT
Code Example
Csharp :: c# check if array is empty 
Csharp :: http error 502.5 asp.net core 2.2 
Csharp :: drag png to unity 3d 
Csharp :: prettier c# 
Csharp :: loop through all enum values in C# 
Csharp :: How can you learn C# on your own 
Csharp :: tests not showing in test explorer 
Csharp :: unity json save array 
Csharp :: waitforseconds unity 
Csharp :: hash password with salt c# 
Csharp :: how to cjeck if a string has a word c# 
Csharp :: c# entity framework code first connection string 
Csharp :: select a object from list based on a value csharp 
Csharp :: unity clamp rotation 
Csharp :: photon rpc 
Csharp :: unity random range 
Csharp :: unity animator check if animation is playing 
Csharp :: c# parse the date in DD/MMM/YYYY format 
Csharp :: unity point between two positions 
Csharp :: all month in array 
Csharp :: c# get month number 
Csharp :: .net Core Get File Request 
Csharp :: visual studio fix formatting 
Csharp :: c# compress string 
Csharp :: this in unity 
Csharp :: copy 2d arrays C# 
Csharp :: how to get the hour on c# 
Csharp :: c# combobox selected item 
Csharp :: unity quaternion 
Csharp :: get type of variable c# 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =