title: ifstream variable not reading correct character 1
body: <p>I have an issue with the following code snippet.</p>
  
  <p>I have a file referred to with the character array <code>FileName</code>. The file could be basically anything, but in my case it is a file the contains some irrelevant text on the first line and then some lines that start with 1 (one) in one case and 0 (zero) in many other cases. So, my file is something like:</p>
  
  <pre><code>iewbFLUW 82494HJF VROIREBURV.TEXT
  
  0 TEST whatever something
  0 TEST words and more
  1 TEST something something
  0 TEST oefeowif
  ...
  </code></pre>
  
  <p>The intention of the my code snippet is that it picks the line selected with 1 (one). </p>
  
  <pre><code>// the stream object for my file:
  string FileName = "myFile.text";
  ifstream input(FileName);
  
  // parsing the first line
  char comment[1000];
  input.getline(comment, 1000, '\n');
  cout &lt;&lt; comment &lt;&lt; endl;
  
  // parsing the other lines
  bool select=false;
  while (!input.eof())
  {
      input &gt;&gt; select;
  
      cout &lt;&lt; select &lt;&lt; endl;
      if(select){
      // do something
       }
  }
  </code></pre>
  
  <p>However, although the <code>FileName</code> starts the second line with a 0 (zero), the variable <code>select</code> turns out to have value 1 right after the line <code>input &gt;&gt; select;</code> </p>
  
  <p>How can this be?</p>