Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!ukma!uflorida!travis!tom From: tom@ssd.csd.harris.com (Tom Horsley) Newsgroups: comp.lang.c++ Subject: iostream question Message-ID: Date: 22 Aug 90 11:00:26 GMT Sender: news@travis.csd.harris.com Organization: Harris Computer Systems Division Lines: 37 This is really two questions, first the most general one: Is there a really complete description of the new iostream interface in a easily available book or document of some kind out there? (I have seen a reference to an official AT&T document, is it reasonably priced, and can I order a copy from some 800 number or something (or even FTP it)?). Second, the specific one that lead to my asking the first: How do you determine the number of bytes actually read by the read() function in an iostream? I have just started using TurboC++ and looking through the header I found a gcount() function with a comment that says it returns the number of bytes read by the last unformatted input operation. Since read() is an unformatted input operation, I would have expected this to be the function to use, but when I do several consecutive read() calls, the value returned by gcount() is the cumulative total of all the bytes read in all the calls. Is gcount() the correct official function to use to determine the size of the last read? Is the TurboC++ iostream implementation broken? I have a couple of C++ books, but none of them go into any real detail on iostreams (although they all mention them in passing). -- ====================================================================== domain: tahorsley@csd.harris.com USMail: Tom Horsley uucp: ...!uunet!hcx1!tahorsley 511 Kingbird Circle Delray Beach, FL 33444 +==== Censorship is the only form of Obscenity ======================+ | (Wait, I forgot government tobacco subsidies...) | +====================================================================+