Answers for "c# get file path from project folder"

C#
0

c# relative path to project folder

string fileName = "ich_will.mp3";
string path = Path.Combine(Environment.CurrentDirectory, @"Data", fileName);
Posted by: Guest on September-03-2020
0

c# get folder path from file path

Path.GetDirectoryName(filename);
Posted by: Guest on June-02-2021
-2

c# get folder of full ilepath

string fileName = @"test.txt";
    string currentDirectory = Directory.GetCurrentDirectory();
    string[] fullFilePath = Directory.GetFiles(currentDirectory, filename, SearchOption.AllDirectories);
Posted by: Guest on September-08-2020

Code answers related to "c# get file path from project folder"

C# Answers by Framework

Browse Popular Code Answers by Language