get document folder path c# code example
Example 1: get directory of file c#
using System.IO;
string file = "C:\Documents\file.txt";
Path.GetDirectoryName(file);
Example 2: get documents path c#
String path = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);