Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!uunet!taumet!steve From: steve@taumet.com (Stephen Clamage) Newsgroups: comp.lang.c++ Subject: Re: Stream library Keywords: streams istrstream scanf Message-ID: <634@taumet.com> Date: 23 Mar 91 19:53:53 GMT References: <945@ticnj.UUCP> Organization: Taumetric Corporation, San Diego Lines: 13 srs@ticnj.UUCP (Scott Strool) writes: >I can get istrstream to read an entire line but how do you tell istrstream >to read until a specific character or a predetermined length. Use getline(char* ptr, int len, char delim); This reads up to len characters or to the delimiter, whichever comes first. -- Steve Clamage, TauMetric Corp, steve@taumet.com