Answers for "read all files in folder c#"

C#
2

c# get files of type in directory

string[] files = System.IO.Directory.EnumerateFiles(directory, "*.*").ToArray();
Posted by: Guest on April-24-2021
1

c# retrieve files in folder

using System.IO;

string[] filePaths = Directory.GetFiles(@"c:MyDir");
// returns:
// "c:MyDirmy-car.BMP"
// "c:MyDirmy-house.jpg"
Posted by: Guest on June-16-2020
3

c# list all files in a directory and subdirectory

string[] allfiles = Directory.GetFiles("path/to/dir", "*.*", SearchOption.AllDirectories);
Posted by: Guest on May-05-2020
1

list all files in directory and subdirectories c#

string[] entries = Directory.GetFileSystemEntries(path, "*", SearchOption.AllDirectories);
Posted by: Guest on July-24-2020
0

Get files from directory c#

using System.IO;

string[] filePaths = Directory.GetFiles(@"c:MyDir");
// returns:
// "c:MyDirmy-car.BMP"
// "c:MyDirmy-house.jpg"
Posted by: Guest on November-05-2021

Code answers related to "read all files in folder c#"

C# Answers by Framework

Browse Popular Code Answers by Language