Article View: borland.public.cppbuilder.nativeapi
Article #14498Re: Saving into INI File
From: Jos
Date: Tue, 12 Aug 2003 17:22
Date: Tue, 12 Aug 2003 17:22
24 lines
1648 bytes
1648 bytes
Stan wrote: > 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 Apart from Eyyub's solution, you can work around this problem by changing all the line breaks into a special character (such as | or another character that you never use in your lines), before writing to the ini file. When reading from the ini file, you'll have to do the reverse. You can also consider using the registry instead, which supports multiline text. -- Jos Branders
Technical Details
Message-ID:
<3f392249@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3f38ecfb$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,4727f93d94327f0f X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-08-12 10:27:32 PST From: "Jos" <josnospambranders@fastmail.fm> Newsgroups: borland.public.cppbuilder.nativeapi References: <3f38ecfb$1@newsgroups.borland.com> Subject: Re: Saving into INI File Date: Tue, 12 Aug 2003 19:22:16 +0200 Lines: 26 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 213.118.218.41 Message-ID: <3f392249@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1060708937 213.118.218.41 (12 Aug 2003 10:22:17 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail