Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.c++.moderated    |    Moderated discussion of C++ superhackery    |    33,346 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 33,240 of 33,346    |
|    =?UTF-8?Q?Tobias=20M=C3=BCller?= to troplin@bluewin.ch    |
|    Re: Is the binary open mode required?    |
|    08 Oct 13 15:51:45    |
   
   l-september.org> 7a8c2ecb   
   l-september.org> 2bfca399   
   From: troplin@bluewin.ch   
      
   Tobias Müller wrote:   
   > Joe Bentley wrote:   
   >> I don't see any difference between using the binary open mode or not   
   >> when writing text or binary files? Is there a difference or am I   
   >> missing something?   
   >   
   > The difference is the handling of newlines. Text mode normalizes all   
   > different newline conventions (\r\n, \r, \n) to just \n.   
      
   That's of course the behavior of input streams, for output streams it's the   
   other way round: it replaces \n with the specific newline character   
   (sequence) for the current platform.   
      
   Sorry for the confusion   
      
   Tobi   
      
      
   --   
    [ See http://www.gotw.ca/resources/clcm.htm for info about ]   
    [ comp.lang.c++.moderated. First time posters: Do this! ]   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca