Answers for "how to load a file in current folder c#"

C#
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
0

c# read file current directory

var path = Path.Combine(Directory.GetCurrentDirectory(), "\fileName.txt");
Posted by: Guest on September-21-2020
1

c# retrieve files in folder

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

Code answers related to "how to load a file in current folder c#"

C# Answers by Framework

Browse Popular Code Answers by Language