Click here to Skip to main content
11,573,935 members (66,137 online)
Click here to Skip to main content

Cinchoo - Hierarchical INI sections

, 7 Jan 2013 CPOL 4.3K 69 3
Rate this:
Please Sign up or sign in to vote.
Defining and using Hierarchical INI sections


Cinchoo is the application framework for .NET. One of the feature it exposes is an API to read and write INI file. This article reveals in particular of reading and storing Hierarchical INI sections. It gives an opportunities to contain INI sections within another INI section.  

Please download latest Cinchoo binary from here. 

How to use 

For a sample INI file below 

;This is a test hierarchical INI file.
;To test its functionality.

CORP1=JP Morgan Chase
COPR2=Morgan Stantley


In the above sample INI file, the Hierarchical sections are given with ‘/’ separator. ‘CORPORATIONS’ section contains ‘FINANCE’ and ‘TECHNOLOGY’ subsections. There are couple ways, we can access them programmatically.   

using (ChoIniDocument iniDocument = ChoIniDocument.Load(@"Sample.ini"))

Sample project is attached for download. Try for yourself. Thanks. 


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

United States United States
No Biography provided

You may also be interested in...

Comments and Discussions

-- There are no messages in this forum --
| Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.150624.2 | Last Updated 7 Jan 2013
Article Copyright 2013 by Cinchoo
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid