Page 1 of 1

ini type file reader

PostPosted: Jul 29, 2002 @ 2:39pm
by BadBazza
Hi,

I've looked through loadsa forums but to no avail.

I am about to write a C++ file reader to read text files which contain initialization and parameter info.

What I hope the file will look like is

[control]
orientation=landscape
sound=50
menu=1,4,3,5

I believe that most of you (programmers) will have used something like this in the past and I did not want to reinvent the wheel.

Can anybody offer some pointers to save me some time?

Thanks in advance
Bad

PostPosted: Jul 29, 2002 @ 2:56pm
by Phantom
Certainly. Jaap wrote an excellent ini file implementation for the Overloaded libraries. You're quite welcome to 'take a look at it'. It does use STL btw.

PostPosted: Jul 29, 2002 @ 3:08pm
by BurningSheep
meh, .ini files have been obsolete for 7 years now, i'd go for XML!

PostPosted: Jul 29, 2002 @ 3:12pm
by britcode
what is the advantage of XML over ini?

PostPosted: Jul 29, 2002 @ 3:22pm
by BadBazza
Thanks for the rapid replies :)

Phantom: is STL ok on PPCs? Not used them before but am looking into them now.

BurningSheep: XML?

Thanks again
Bad

PostPosted: Jul 29, 2002 @ 3:45pm
by BurningSheep