title: How to read string with spaces, until a '\r'?
body: <p>I want to read a long string, and split it into smaller ones, where each new row of the big string is an entry for the smaller ones. However, I only want it to break at '\r', and not at spaces.
  This is a sample code of what I'm doing right now:</p>
  <pre><code>std::vector&lt;std::string&gt; m_list;
  std::ifstream input(&quot;data.txt&quot;);
  std::string str;
  std::getline(input, str);
  std::istringstream iss(str);
  std::string temp;
  while (iss &gt;&gt; temp)
  {
      m_list.push_back(temp);
  }
  </code></pre>
  <p>However, this code breaks the string upon encountering spaces, as well.</p>