Re: Reading/Writing INI files

From: Tauno Voipio (tauno.voipio_at_iki.fi.NOSPAM.invalid)
Date: 02/16/05


Date: Wed, 16 Feb 2005 10:52:22 GMT

Kasper Dupont wrote:
> Severian wrote:
>
>>On Wed, 16 Feb 2005 01:30:58 GMT, Norman Bullen
>><norm@BlackKittenAssociates.com.INVALID> wrote:
>>
>>>How about using the API? GetPrivateProfile... and WritePrivateProfile...
>>
>>Hmm. I didn't realize Linux had implemented these.
>
>
> It doesn't. I guess they are not part of POSIX.
> Just the look of those names is enough to make
> one realize, that they are not likely to exist.
>

It is not too difficult to write a parser for the .ini files
(for reading).

IMHO, plain printf() is enough to write the file - it's
just text with a quite fixed format.

This seems to be posted also to a Windows development
newsgroup - the API calls are there.

-- 
Tauno Voipio
tauno voipio (at) iki fi


Relevant Pages

  • Re: Web surfing with Linux increasingly useless
    ... > sites are simply unuseable with Linux browsers Mozilla and Konqueror, ... > are just increasingly hopeless without IE. ... tauno voipio iki fi ...
    (comp.os.linux.networking)
  • Re: makefile
    ... > I am using the -c flag with it as well ... > I am compiling a DLL written in VC naming test.h and test.cpp files ... Maybe off-topic - this is a Linux application group. ... tauno voipio iki fi ...
    (comp.os.linux.development.apps)
  • Re: Help! - VIA onboard LAN not working...
    ... The interrupts should not be a problem - Linux is able to handle shared PCI ... The problem is in I/O addresses: looking at the logs and files in /proc may ... Tauno Voipio ...
    (comp.os.linux.hardware)
  • Re: Extracting info from OS/hardware
    ... >>one given moment on Linux and Windows. ... Can I call something in win32all on Windows or read some file on ... Plenty of the Linux information is in the /proc directory tree. ... Tauno Voipio ...
    (comp.lang.python)
  • Re: Extracting info from OS/hardware
    ... >>one given moment on Linux and Windows. ... Can I call something in win32all on Windows or read some file on ... Plenty of the Linux information is in the /proc directory tree. ... Tauno Voipio ...
    (comp.os.linux.development.apps)