🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Parsing a registry file ???

#7341
From: Alan Bellingham
Date: Tue, 08 Feb 2005 18:40
25 lines
1616 bytes
"Andrue Cope [TeamB]" <no.spam@not.a.valid.address> wrote:

>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.

getline() is probably this:

  std::getline(std::istream&, std::string&)

Much more convenient, because you don't have to guess how much is going
to be read.

close() is probably this:

  std::istream::close()

which is used for explicitly closing a stream when you don't want to
wait for it to get destroyed.

(But you knew that, didn't you.)

Alan Bellingham
-- 
ACCU Conference 2005 - 20-23 April, Randolph Hotel, Oxford, UK
Technical Details
Message-ID: <ho1i019qpa4d2o1v5rvpovcp766bssau1u@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news1.google.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4208ebcf$1@newsgroups.borland.com> <4208efe9$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: Alan Bellingham <alanb@episys.com>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Parsing a registry file ???
Date: Tue, 08 Feb 2005 18:40:26 +0000
Reply-To: alanb@episys.com
Message-ID: <ho1i019qpa4d2o1v5rvpovcp766bssau1u@4ax.com>
References: <4208ebcf$1@newsgroups.borland.com> <4208efe9$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 2.0/32.652
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 193.129.251.130
X-Trace: newsgroups.borland.com 1107888023 193.129.251.130 (8 Feb 2005 10:40:23 -0800)
Lines: 25
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news1.google.com!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail