title: C++ ifstream not reading \n?
body: <p>I'm trying to do operations per-line of a text file, and the way I have it right now, my <code>ifstream</code> object isn't detecting the <code>\n</code> character for each line, which is required for this project. Here's how I have it right now:</p>
  <pre class="lang-cpp prettyprint-override"><code>std::ifstream instream;
  instream &gt;&gt; value;
  while (value != '\n')
  {
      // do code and such
  }
  </code></pre>
  <p>But when I have it run the loop, all I'm getting is a single line of everything in the program. While it is doing exactly what it is supposed to in the loop, I NEED the <code>\n</code> to be recognized. Here's my <code>.txt</code> file:</p>
  <pre><code>LXXXVII
  cCxiX
  MCCCLIV
  CXXXLL
  MMDCLXXIII
  DXLCC
  MCdLxxvI
  XZ
  X
  IV
  </code></pre>
  <p>Exactly like that. I cannot change it.</p>