Suggestion to a format like INI which will be cross-platform

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Suggestion to a format like INI which will be cross-platform

Post by MasterGod »

I want to have a file which will hold some configurations, like the INI file in Windows but I want it to be cross-platform.
I wonder if there is a format I am unfamiliar with which is what I need here so I wont just end up making a simple text file which will have me duplicating the behavior of a INI file.

PS: Windows' text file ARE cross-platform, right?
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
Dark_Kilauea
Posts: 368
Joined: Tue Aug 21, 2007 1:43 am
Location: The Middle of Nowhere

Post by Dark_Kilauea »

ini is basically a text file, so it should be cross platform.

You could also check out xml :)
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

There are functions to work with INI within windows.h which I don't want to use.

But XML sounds interesting although I thought it suppose to be used to hold great amount of data and not some simple configurations like INI files..
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

There had been threads on several ini-file parsers in the forums. Both based on text files or based on XML. As long as you only use Irrlicht methods to access files all code will be quite platform independent.
MasterGod
Posts: 2061
Joined: Fri May 25, 2007 8:06 pm
Location: Israel
Contact:

Post by MasterGod »

hybrid wrote:ini-file parsers
Is the Keyword I was missing when searching the forum..

Thanks, I think I found few useful threads.. :lol:
Image
Dev State: Abandoned (For now..)
Requirements Analysis Doc: ~87%
UML: ~0.5%
Post Reply