title: Incorrect data input with fstream
body: <p>I tried to read in data from a text file using fstream but got wrong data.</p>
  
  <pre><code>ifstream fin ("C:\\Users\\rEgonicS\\Documents\\test.in");
  int number;
  fin &gt;&gt; number;
  cout &lt;&lt; number;
  </code></pre>
  
  <p><code>test.in</code> is simply <code>12</code>.<br>
  <code>cout</code> reads <code>4273190</code>.<br>
  Can someone explain why this is so and how to fix it?</p>