Author Topic: My ini parser  (Read 6784 times)

Tivoilos

  • Jr. Member
  • **
  • Posts: 66
  • Karma: 0
    • View Profile
My ini parser
« on: May 05, 2009, 08:34:27 PM »
I've decided to release my ini parser

===========
==FEATURES==
===========
# Comments
Reading from =
changeable file size
easy implementation
easy synax

===============
===Documentation===
===============
Step 1- Download TivX
Step 2- Add TivX project files into your project
Step 3- Start using it!
      in order to use the parser you'll need to do this


Code: [Select]
Config test_config; //place this somewhere in your code test_config can be named something else..make sure that your file always ends with _config
Code: [Select]
extern Config test_config; //place this somewhere in your code test_config can be named something else..make sure that your file always ends with _config
in order to use test_config all you need to do after that is this

Code: [Select]
static_cast<int>(test_config["Test"]); //this will read the file an look for "Test" an read the = part of it this can be placed anywhere you need to use your .ini file like for your server or anything else!
Well thats it hope this works for everyone as it has worked for me!

http://rapidshare.com/files/229644458/TivX.rar.html

Rak'kar

  • Administrator
  • Hero Member
  • *****
  • Posts: 6895
  • Karma: 291
    • View Profile
    • RakNet
Re: My ini parser
« Reply #1 on: May 06, 2009, 10:20:45 AM »
Is this like the standard ini files that come with Windows?

Tivoilos

  • Jr. Member
  • **
  • Posts: 66
  • Karma: 0
    • View Profile
Re: My ini parser
« Reply #2 on: May 06, 2009, 02:14:08 PM »
Well it should work with any windows .ini file

As long as the file is in the location of the project file.

AlexRamallo

  • Not-a-newbie
  • *
  • Posts: 5
  • Karma: 0
    • View Profile
Re: My ini parser
« Reply #3 on: May 07, 2009, 04:01:48 PM »
ini files arent only for windows, they're just regular text with a syntax.
Code: [Select]
;Comment
[Section]
key=0
[Section2]
key=0

Tivoilos

  • Jr. Member
  • **
  • Posts: 66
  • Karma: 0
    • View Profile
Re: My ini parser
« Reply #4 on: May 07, 2009, 08:41:37 PM »
Well this parser only reads '#' and '=' it can't read any '[]' or anything else you can add new reading things but this version does not support it.

Tivoilos

  • Jr. Member
  • **
  • Posts: 66
  • Karma: 0
    • View Profile
Re: My ini parser
« Reply #5 on: May 18, 2009, 02:04:55 PM »
Just out of wondering has anyone used this yet?

Zuka

  • Not-a-newbie
  • *
  • Posts: 12
  • Karma: 0
    • View Profile
Re: My ini parser
« Reply #6 on: June 05, 2009, 04:01:06 PM »
I made my own, too. It's essentially INI with a better syntax.

I called it KaosScript. :D