CIniFile translates the hole ini file in a structure,
so it works best when a set
of entrys (more then one) have to be read or
write.
CIniFile is writen by Carsten Breuer (C.Breuer@openwin.de).
This program is free software; you can redistribute it and/or modify
it under
the terms of the GNU Lesser General Public License as published by
the
Free Software Foundation; either version 2 of the License, or (at your
option)
any later version.
This program is distributed in the hope that it will be useful, but
WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program; if not, write to the Free Software Foundation,
Inc.,
59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
~CIniFile (void);
UINT GetVersion (void);
BOOL OpenIniFile (CCHR *pFileName);
BOOL ReadBool (CCHR *pSection, CCHR *pKey, BOOL Default);
int ReadInt (CCHR *pSection, CCHR *pKey, int Default);
double ReadDouble (CCHR *pSection, CCHR *pKey, double Default);
CCHR *ReadString (CCHR *pSection, CCHR *pKey, CCHR *pDefault);
void WriteBool (CCHR *pSection, CCHR *pKey, bool Value);
void WriteInt (CCHR *pSection, CCHR *pKey, int Value);
void WriteDouble (CCHR *pSection, CCHR *pKey, double Value);
void WriteString (CCHR *pSection, CCHR *pKey, CCHR *pValue);
bool DeleteKey (CCHR *pSection, CCHR *pKey);
void CloseIniFile ();
bool WriteIniFile (CCHR *pFileName);