string GuarnteedWritePath = System.Environment. GetFolderPath( Environment.SpecialFolder.CommonApplicationData ); string FilePath = Path.Combine(GuarnteedWritePath, "LogFile.txt");