Need to handle Java-style properties files in C++? I've decided to post some of my own personal library of code on this blog. This is one of those occasionally useful things.
propertyutil.h
propertyutil.cpp
If you fix any bugs, extend the code or anything else, send back your changes if you don't mind. ;)
Thursday, February 28, 2008
Java-Style Properties Files in C++
Subscribe to:
Post Comments (Atom)
3 comments:
Hi Senzee,
There is a Boost library called 'Program Options', which provides some convenience in dealing with command line and config files. Unfortunately it seems that you have to specify in the code the properties the file should have in advance. It would be much more useful if you could just load any key,value pairs present in the file. If this is not true about the boost library I hope someone can correct me.
Best,
E.Z
Awesome! May we use this library in commercial code?
Thanks!
@Anonymous,
Email me: psenzee yahoo com
:)
Post a Comment