Reading and writing INI files using Cinchoo framework can be controlled through global INI settings. These settings are available for your to edit at ChoIniSettings.xml file in your application binary folder. It will be created automatically when you run your application, if not exists. Here is the sample INI settings file looks like
<?xml version="1.0" encoding="utf-8"?> <configuration> <iniSettings nameValueSeperator="=" commentChars=";#" ignoreValueWhiteSpaces="false" /> </configuration>
- nameValueSeperator – A character separate the key-value under section. Default value is ‘=’.
- commentChars – List of INI comment character parser used to identify the comments. Default value is ‘;#’.
- ignoreValueWhiteSpaces – true, to trim any white-spaces surrounded the value. Otherwise, preserve the white space with the value if any.