Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

implementation of configuration file in c++

59 views
Skip to first unread message

kushal bhattacharya

unread,
Dec 11, 2016, 12:00:41 AM12/11/16
to
hi,
I am nearly new to c++,so i dont know how to build a configuration file for parsing json or xml.Could you guys please recommend me the best way to do that
Thanks,
Kushal

kushal bhattacharya

unread,
Dec 11, 2016, 12:16:24 AM12/11/16
to
to put it in a correct way this config file will have xml and json

Öö Tiib

unread,
Dec 11, 2016, 1:18:26 PM12/11/16
to
On Sunday, 11 December 2016 07:16:24 UTC+2, kushal bhattacharya wrote:
> to put it in a correct way this config file will have xml and json

XML and JSON are (software- and hardware-independent) data formats.
Both are widely used for storing and exchanging whatever data.
What is the point of combining XML and JSON that do same thing?

Jorgen Grahn

unread,
Dec 12, 2016, 2:08:22 PM12/12/16
to
On Sun, 2016-12-11, kushal bhattacharya wrote:
> hi,

> I am nearly new to c++,so i dont know how to build a configuration
> file for parsing json or xml.

I think you mean "write code to parse a configuration file written in
XML or JSON". There are free libraries for such tasks, for example
libxml2 and RapidJSON.

/Jorgen

--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .

Cholo Lennon

unread,
Dec 27, 2016, 9:33:28 AM12/27/16
to
On 12/11/2016 02:16 AM, kushal bhattacharya wrote:
> to put it in a correct way this config file will have xml and json
>


Take a look at Boost Property Tree library (it supports different
formats: ini, json, xml, etc)


--
Cholo Lennon
Bs.As.
ARG
0 new messages