View Single Post
  #3 (permalink)  
Old February 7th, 2006, 05:02 PM
mikhailberis mikhailberis is offline
Registered User
 
Join Date: Feb 2006
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to mikhailberis
Default

If you intend on reading the .ini file (or any particular file format for that matter) and using it in your program, yes there's a way. The "best" way is to use your platform's particular API methods (as mentioned above).

Another way is to use an existing parser implementation that already parses the .INI file contents -- this might involve using third party code, or some previously exported library that comes with your platform's compiler/toolset.

Another way still is to roll your own parser and generator to be able to deal with .INI files the way you want to. You might even want to make your own configuration file format, or even just use XML instead for your configuration needs.

Dean Michael C. Berris
Orange and Bronze Technologies, Inc.
Mobile +639287291459
Reply With Quote