title: issue with the reading binary data through stdin
body: <p>I am having problem with binary data while reading from stdin.</p>
  
  <p>My application is having the delimiter as double newline as "2" when I enter two new lines it will stop reading through stdin and save the content into char buffer.
  I am able to read the total bytes without missing till I press two enters, but the data where ever we are encountering the \n\r CR+LF it is modified as \n.</p>
  
  <p>I am reading the windows based file teraterm and my hardware is Linux so I encounter this problem, in code level I have tried with </p>
  
  <pre><code>fgetc(stdin), getc(stdin)
  freopen(stdin,"rb",1); 
  </code></pre>
  
  <p>and </p>
  
  <pre><code>fread(buff,1,bufsize,stdin)
  </code></pre>
  
  <p>but no all the functions are reading and modifying the carriage return.
   So Please any one help me out from this problem.</p>