| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Sun Jun 27, 2004 1:31 pm Post subject: Portable TIniFile implementation in C++ |
|
|
Is there a OS independent C++ implementaion of the TIniFile ?
|
|
| Back to top |
|
 |
Andrue Cope [TeamB] Guest
|
Posted: Mon Jun 28, 2004 9:23 am Post subject: Re: Portable TIniFile implementation in C++ |
|
|
<Wenpgro Souwgrou> wrote:
| Quote: | Is there a OS independent C++ implementaion of the TIniFile ?
|
I don't know but I doubt it. TIniFile gives access to Windows INI files
so you're asking for an Operating System independant class to access an
Operating System dependant structure.
OTOH it's a pretty simple class to write so I'm sure people have
written one for themselves (I know we did). Maybe someone has chosen to
publish their efforts. Try SourceForge.Net.
--
Andrue Cope [TeamB]
[Bicester, Uk]
http://info.borland.com/newsgroups/guide.html
|
|
| Back to top |
|
 |
cppgx Guest
|
Posted: Mon Jun 28, 2004 5:41 pm Post subject: Re: Portable TIniFile implementation in C++ |
|
|
But I don't think the INI format is OS-dependent. Many unix
config files use this format. I have written a TIniFile class
which can read/write int/double/string/array/sections...
It's only 300 lines. Quite easy.
"Andrue Cope [TeamB]" <no.spam (AT) spammy (DOT) com> wrote:
| Quote: | Wenpgro Souwgrou> wrote:
Is there a OS independent C++ implementaion of the TIniFile ?
I don't know but I doubt it. TIniFile gives access to Windows INI files
so you're asking for an Operating System independant class to access an
Operating System dependant structure.
OTOH it's a pretty simple class to write so I'm sure people have
written one for themselves (I know we did). Maybe someone has chosen to
publish their efforts. Try SourceForge.Net.
--
Andrue Cope [TeamB]
[Bicester, Uk]
http://info.borland.com/newsgroups/guide.html
|
|
|
| Back to top |
|
 |
William Charles Nickerson Guest
|
Posted: Mon Jun 28, 2004 8:15 pm Post subject: Re: Portable TIniFile implementation in C++ |
|
|
"Andrue Cope [TeamB]" <no.spam (AT) spammy (DOT) com> wrote
| Quote: | Wenpgro Souwgrou> wrote:
Is there a OS independent C++ implementaion of the TIniFile ?
I don't know but I doubt it. TIniFile gives access to Windows INI files
so you're asking for an Operating System independant class to access an
Operating System dependant structure.
OTOH it's a pretty simple class to write so I'm sure people have
written one for themselves (I know we did). Maybe someone has chosen to
publish their efforts. Try SourceForge.Net.
|
A good starting point would be to look at TMemIniFile (provided that you can
decipher the Delphi code which seemed pretty basic when I did it). I needed
a class that could load the INI data from files using a proprietory server
that was developed in house and it was quite simple. The guts of it are
based on THashedStringList so it will help if you are familiar with
TStrings, TStringList and/or THashedStringList.
Aloha
Bill
|
|
| Back to top |
|
 |
|