Article View: borland.public.cppbuilder.nativeapi
Article #7334Re: Parsing a registry file ???
From: Andrue Cope [TeamB]
Date: Tue, 08 Feb 2005 16:58
Date: Tue, 08 Feb 2005 16:58
24 lines
1733 bytes
1733 bytes
marc wrote:
> string strCurrentLine;
> while(getline(inNewFile,strCurrentLine))
> {
> ShowMessage(strCurrentLine);
> }
> inNewFile.close();
Exports from the registry are indeed textual so the fact that your file
was exported by RegEdit should be irrelevant. Your inability to read it
must therefore be because of a problem with your code.
I have a couple of questions:what is 'getline()'? I know of the istream
method but it doesn't seem to be a call to that as the arguments are
wrong. Then there's the close() call which doesn't belong either.
Is this pseudo code? If so it would be better if you could post some
compiling code that demonstrates the problem.
--
Andrue Cope [TeamB]
[Bicester, Uk]
http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID:
<4208efe9$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!ltu.se!luth.se!38.119.100.82.MISMATCH!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<4208ebcf$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e84bf15728e20ff1 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Andrue Cope [TeamB]" <no.spam@not.a.valid.address> Subject: Re: Parsing a registry file ??? Newsgroups: borland.public.cppbuilder.nativeapi References: <4208ebcf$1@newsgroups.borland.com> Date: Tue, 8 Feb 2005 16:58:26 +0000 User-Agent: XanaNews/1.17.2.4 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 NNTP-Posting-Host: 217.207.223.34 Message-ID: <4208efe9$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1107881961 217.207.223.34 (8 Feb 2005 08:59:21 -0800) Lines: 24 X-Authenticated-User: acope Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!ltu.se!luth.se!38.119.100.82.MISMATCH!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail