title: How to use string as a delimiter in getline() function in c++
body: <p>I have structure member which takes the value of delimiter from XML.And I want use that structure member as delimiter . But as <code>getline()</code> function take delimiter as char only so my I'm stuck over there.</p>
  
  <p><code>istream&amp; getline (istream&amp; is, string&amp; str, char delim)</code> </p>
  
  <p>I have done following thing in my code:-</p>
  
  <pre><code>string ABC = struct.delimiter;    // Here struct.delimiter is takes value of
                                       d delimiter from XML delimiter = '='  
  </code></pre>
  
  <p>and I want use as</p>
  
  <pre><code>getline(string1,string2, ABC);
  </code></pre>
  
  <p>Is it possible?
  or 
  Is there another way to do it?</p>