title: How to terminate using getline()
body: <p>I am trying to store some integers in a file and I am storing it with ',' as delimiter. Now when I read the file, I read the line using getline() and use tokenizer to delimit the file, However, I cannot terminate the line, I need some bool condition in getline to terminate. </p>
  
  <pre><code> while(getline(read,line)) {
           std::cout&lt;&lt;line&lt;&lt;std::endl;
           std::istringstream tokenizer(line);
           std::string token;
           int value;
  
           while(????CONDN???) {
                   getline(tokenizer,token,',');
                   std::istringstream int_value(token);
                   int_value&gt;&gt;value;
                   std::cout&lt;&lt;value&lt;&lt;std::endl;
           }
    }
  </code></pre>
  
  <p>Please advice.</p>