c# - Access ini file from documents for reading -


I have inserted a config INI file "config.ini" to read and write from my C # program, this thing If the user has enabled the UAC then this program does not read and write the file for some strange reasons, but this file has been successful but it can not be read or written.

How can I get it?

This file is saved in DOCUMENTSFOLDER \ ProductName \ config.ini

I class file:

Code snippet of config. Ini:

Quick suggestions before going forward, you know Should take care of a clean INI handler and reading / writing INI files

Sample use of code read from the IIi file.

 using Nini; Using Nini.Config; Nomenclature ninidemo {public class ninidemoclas {public ballet (public) {string configFileName = "demo.ini"; IniConfigSource configSource = New IniConfigSource (configFileName); IConfig demoConfigSection = configSource.Configs ["Demo"]; String Demo Val = Demo Configuration Gate ("Demovell", string. Apt); 

Hope this helps, Best Codes, Tom.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -