title: istringstream issue
body: <p><strong>Problem:</strong></p>
  
  <p>I have a text file with lines of information in it as need below under "txt file". I am attempting to map the items so I can finish my assignment. In mapping them I am using <code>istringstream</code>. My problem comes about in getting it to work when there are multiple words in an item that I want to have saved in one string. For example the "Unsweetened Applesauce" I want that to be one string (item.setNewItem). Any help would really be appreciative, and since I am a current student, any dumbing down for my sake would really be appreciated. =)</p>
  
  <p><strong>txt file:</strong></p>
  
  <p>1 cup Sugar | 1 cup Unsweetened Applesauce | calorie</p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>void mapList(ifstream &amp;foodReplace, map&lt;string, Substitutions&gt; &amp;subs)
  {
      string line;
      while (getline (foodReplace, line));
      {
          Substitutions item;
          istringstream readLine(line);
  
          readLine &lt;&lt; item.setOldAmount
                   &lt;&lt; item.setOldMeasurement
                   &lt;&lt; item.setOldItem
                   &lt;&lt; item.setNewAmount
                   &lt;&lt; item.setNewMeasurement
                   &lt;&lt; item.setNewItem;
  
          subs.insert(pair&lt;string, Substitutions&gt;(item.getOldItem, item));
      }
  
  }
  </code></pre>