Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!pacbell.com!lll-winken!ac5!wilson From: wilson@ac5.cs.nps.navy.mil (kalin wilson) Newsgroups: comp.lang.c++ Subject: String as input stream Message-ID: <2072@ac5.cs.nps.navy.mil> Date: 10 Apr 91 20:34:24 GMT Organization: Naval Postgraduate School,Monterey,CA Lines: 15 Is there a simple way to use a string as an input object. Something built into the standard (?) iostream classes? What I want to do is similiar to sscanf with an input stream or sprintf with an output stream. I want to attach the stream to a string then use extractors to process the string. Maybe this is undo duplication. I'd like to stay away from printf type functions because of some of the excess baggage they have. It seems this type of capability would be a logical OOP use of streams and strings. -------------------------------------------------------------------- Kalin Wilson | wilson@taurus.cs.nps.navy.mil Naval Postgraduate School | Monterey, Ca | "Opinions? What opinions?" -------------------------------------------------------------------