Boost logo

Boost Users :

Subject: Re: [Boost-users] Cross platform library for reading/writing configuration files?
From: Raymond Wan (rwan_at_[hidden])
Date: 2008-11-15 02:21:04


Andreas Masur wrote:
> On Nov 14, 2008, at 2:21 PM, Jeff Dunlap wrote:
>> I've used Windows specific functions for reading/writing
>> configuration (INI)
>> files in my application and would like to know if there is a cross
>> platform
>> library available that is recommended.
>>

...

>> [General]
>> Language=Français
>>
>> [Strings]
>> String00001=Version
>> String00002=Etes vous sûr ?
>> String00003=Voulez-vous continuer ?
>
> I am kind of curios why nobody mentioned it yet but isn't
> 'Boost.Program_options' made for this....?
>

Correct me if I am wrong, but doesn't Boost.Program_options only handle
the reading part and not the writing part? I don't know it that well,
but can you modify options and save it to a file using
Boost.Program_options?

But yes, it can at least handle the reading part, which is already half
the work. :-)

Ray


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net