🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #14493

Re: Saving into INI File

#14493
From: Eyyub Volkan �ektimur
Date: Tue, 12 Aug 2003 13:50
29 lines
1791 bytes
you can seperate the lines;

Count is number of lines

Ini->WriteInteger(Section,"ItemCount",Count);
for (int cx=0;cx<Count;cx++)
    Ini->WriteString(Section,"Item_"+IntToStr(cx),Strings[cx]);

you can write/read multi lines like this way.

-- 
___________________________________
Eyyub Volkan �ektimur
Proya Software & Trade Inc.
Head of Core Development Department
"Stan" <thewatcher@email.com> wrote in message
news:3f38ecfb$1@newsgroups.borland.com...
> Hello
>
> I tried saving into an INI file using  sections and items
> my problem is when I try to save text that contains more than one line
into
> an item it ignores all the lines after the first line and just saves the
> first line to the item !!
> Is there a solution to this in the INI ??
>
> Thanks
>
>
Technical Details
Message-ID: <3f38f0ad@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3f38ecfb$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 10cc67,4727f93d94327f0f
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-08-12 06:57:58 PST
From: "Eyyub Volkan �ektimur" <evcektimur@prokon.com.tr>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3f38ecfb$1@newsgroups.borland.com>
Subject: Re: Saving into INI File
Date: Tue, 12 Aug 2003 16:50:38 +0300
Lines: 31
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 213.232.9.4
Message-ID: <3f38f0ad@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1060696237 213.232.9.4 (12 Aug 2003 06:50:37 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail