C# Finding the Path to My Documents Folder

The "SpecialFolder" enum of the "Environment" class is used to find the path of the "My Documents" folder in the C# programming language.

Below is an example of how to use it...


 string myPath = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);



You May Interest

Splitting a String By Desired Character in C#

C# Finding the Computer Name

C# Example of Sum of Even Numbers from 1 to 100

C# Taking Action by MessageBox OK Button

C# Reverse Array