title: How do you setup istream_iterator to not ignore blank lines
body: <p>I'm having problems with istream_iterator reading a file because it ignores blank lines, but I need that those blank lines are included as "".</p>
  
  <p>How should I modify the program below to get the 5 lines in my vector?</p>
  
  <pre><code>#include &lt;sstream&gt;
  #include &lt;string&gt;
  #include &lt;iostream&gt;
  #include &lt;vector&gt;
  #include &lt;iterator&gt;
  
  using namespace std;
  int main(int argc, const char *argv[])
  {
      string  test = "There\nare\n\nfive\nstrings";
      stringstream stream(test);
      vector&lt;string&gt; v;
      copy(istream_iterator&lt;string&gt;(stream),istream_iterator&lt;string&gt;(),back_inserter(v));
      cout &lt;&lt; v.size() &lt;&lt; endl;
      return 0;
  }
  </code></pre>