Re: read from an istream object

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"Igor Tandetnik" <itandetnik@xxxxxxxx> wrote:
manimau <manimau@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
So now my next quextion is how do I
read in binary mode from cin instead of in text mode?

I can't think of any portable way to do that.

Since the whole text-mode/binary-mode morass is a Microsoft-only
abomination, portability is hardly a concern...
--
- Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.
.



Relevant Pages

  • Re: Happy christmas
    ... And binary mode means a 'getfilesize' function is more accurate. ... And years ago when I was selling software my clients all had Windows too. ... You seem to know about the portability limits you are placing on your code and decided that they are acceptable. ... I see nothing wrong with this where, as seems to be the case with you, you are *aware* that you are sacrificing some level of portability for other benefits such as ease of coding. ...
    (comp.lang.c)
  • Re: read from an istream object
    ... "Tim Roberts" wrote: ... read in binary mode from cin instead of in text mode? ... portability is hardly a concern... ... binary perform input and output in binary mode (as opposed ...
    (microsoft.public.vc.language)
  • cin and binary mode
    ... the cin and binary mode operation together? ... I am trying to see if I can open the cin in binary mode for read operation. ... istream_withassign myFile; ...
    (microsoft.public.dotnet.languages.vc)
  • cin and binary mode
    ... the cin and binary mode operation together? ... I am trying to see if I can open the cin in binary mode for read operation. ... istream_withassign myFile; ...
    (microsoft.public.vc.language)
  • Re: cin and binary mode
    ... the cin and binary mode operation together? ... I am trying to see if I can open the cin in binary mode for read operation. ... istream_withassign myFile; filebuf *myFileBuf; ....... ...
    (microsoft.public.vc.language)