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
|