BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Portable TIniFile implementation in C++

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Guest






PostPosted: Sun Jun 27, 2004 1:31 pm    Post subject: Portable TIniFile implementation in C++ Reply with quote



Is there a OS independent C++ implementaion of the TIniFile ?


Back to top
Andrue Cope [TeamB]
Guest





PostPosted: Mon Jun 28, 2004 9:23 am    Post subject: Re: Portable TIniFile implementation in C++ Reply with quote



<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





PostPosted: Mon Jun 28, 2004 5:41 pm    Post subject: Re: Portable TIniFile implementation in C++ Reply with quote



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





PostPosted: Mon Jun 28, 2004 8:15 pm    Post subject: Re: Portable TIniFile implementation in C++ Reply with quote

"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.