title: Read a specific row of integer from a csv file in c++
body: <p>I have a table of integer, for example : </p>
  
  <pre><code>1,10,100
  0,1,2
  3,4,5
  </code></pre>
  
  <p>and i have to read an exact line from the file and ,after,save it in a dynamic array.This is how i tried to read the line but i don't know how to save in a dynamic array.</p>
  
  <pre><code>fstream&amp; Go2Line(fstream&amp; file, unsigned int num){
  file.seekg(ios::beg);
  for(unsigned int i=0; i &lt; num - 1; ++i)
      file.ignore(numeric_limits&lt;streamsize&gt;::max(),'\n');
  return file;}
  
  
  
  int main(){ 
  fstream file("testo.csv",ios_base::in);
  if (!file)
      cout &lt;&lt; "Unable to open file file.csv\n";
  else
  {
      int Number2Go = 1;
      Go2Line(file, Number2Go);
  
      if (!file)
          cout &lt;&lt; "Unable to reach line " &lt;&lt; Number2Go &lt;&lt; ".\n";
      else
      {
          string line;
          getline(file,line);
          std::stringstream convertor(line);// I Don't know how continue from here
  
      }
  }
  
  return 0;}
  </code></pre>