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

A C++ Config File Parser

, 16 May 2008
An STL based C++ utility class to parse structured config files.
config-src.zip
config
config
config.vcproj.EMEA.kschweb.user
Debug
debug
config.ilk
# 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.

License

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

Share

About the Author

freejack

United States United States
No Biography provided

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