Re: Reading/Writing INI files
From: Tauno Voipio (tauno.voipio_at_iki.fi.NOSPAM.invalid)
Date: 02/16/05
- Next message: Tauno Voipio: "Re: C++ IDE for Linux"
- Previous message: Måns Rullgård: "Re: Redirecting the output to input file"
- In reply to: Kasper Dupont: "Re: Reading/Writing INI files"
- Next in thread: Norman Bullen: "Re: Reading/Writing INI files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Tauno Voipio: "Re: C++ IDE for Linux"
- Previous message: Måns Rullgård: "Re: Redirecting the output to input file"
- In reply to: Kasper Dupont: "Re: Reading/Writing INI files"
- Next in thread: Norman Bullen: "Re: Reading/Writing INI files"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|