Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version

A C++ Config File Parser

, 17 May 2008 LGPL3
An STL based C++ utility class to parse structured config files.
# Demo Config File
# Comments are starting with # (has to be first char)

# Sample entries
helloMessage = Hello, World!
helloCount = 3
showHello = true

# Environment variables used as expansion symbol
# Note: symbol names are case sensitive
tempFolder = %TEMP%

# already defined variables used as expansion symbol
tempSubFolder = %tempFolder%\config-demo

# Sub group example
baseName = Welcome Note
message1 = (
#  strings may use "; it does not make a difference, however.
   name = "%baseName% 1"
   text = Sample message text

message2 = (
   name = %baseName% II
   text = Another sample message text

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The GNU Lesser General Public License (LGPLv3)


About the Author


United States United States
No Biography provided

| Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.141220.1 | Last Updated 17 May 2008
Article Copyright 2008 by freejack
Everything else Copyright © CodeProject, 1999-2014
Layout: fixed | fluid