How to get Current User's Application Data in c#.

 How to get Current User's Application Data in c#.

Sometime we need to find the current user application data to some data at this time we need Environment Class.  Environment provides information about, and means to manipulate, the current environment. Environment class can't be inherited.

Let see Example : 


Code : 

        
        using System;

        namespace randomvalue
        {
            class Program
            {
                static void Main(string[] args)
                {
                  var appData= Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
                  System.Console.WriteLine(appData);
                }
            }
        }




Reactions

Post a Comment

0 Comments