Answers for "how to get document folder path in c#"

C#
2

get directory of file c#

using System.IO;

string file = "C:Documentsfile.txt";
Path.GetDirectoryName(file);
Posted by: Guest on December-03-2020
1

get documents path c#

String path = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
Posted by: Guest on February-26-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 "how to get document folder path in c#"

C# Answers by Framework

Browse Popular Code Answers by Language