Thread: Ini class i made

  1. #1
    Registered User
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    217

    Ini class i made

    Hello. I made this open source INI class that can be used to parse ini files and read/write values to ini files.
    Heres the link:
    http://host-a.net/39ster/CIni.zip

    What do you think of it?

    BTW: It only supports single character text files, not unicode or whatever its called that is used by chinese computers...

    EDIT: The type of feedback i want is what you think of my code. http://gmot.chronic667.com/index.php?topic=2742.0 - this guy says my code is crap but he didnt provide a reason. I dont see why its crap so can anyone help out?

    Also i've posted code before in IRC without very similiar coding style as that and someone replied that i really need to work on how i present my code to make it more readible. I was confused because i see people post code that is very hard to read, with almost no styling and no-one says anything about it. Is there anything wrong with my coding style?
    Last edited by 39ster; 04-07-2007 at 07:29 AM.

  2. #2
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    MSN says you should use the reg now instead of ini.

  3. #3
    Registered User
    Join Date
    Jan 2007
    Posts
    188
    MSN? You mean MSDN?

  4. #4
    Registered User
    Join Date
    May 2006
    Posts
    630
    Quote Originally Posted by Queatrix View Post
    MSN says you should use the reg now instead of ini.
    Why?

  5. #5
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    Because the bigger the registry is, the more information you lose when it gets corrupted!

    I'd guess it's because the registry is always in one place, whereas INI files could be moved or something. But I don't know if that outweighs the disadvantage of having a huge, bloated registry.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Creating a database
    By Shamino in forum Game Programming
    Replies: 19
    Last Post: 06-10-2007, 01:09 PM
  2. deriving classes
    By l2u in forum C++ Programming
    Replies: 12
    Last Post: 01-15-2007, 05:01 PM
  3. class errors
    By romeoz in forum C++ Programming
    Replies: 3
    Last Post: 09-16-2003, 07:57 PM
  4. structure vs class
    By sana in forum C++ Programming
    Replies: 13
    Last Post: 12-02-2002, 07:18 AM