title: Write CSV file into vectors
body: <p>I have 8x14800 matrix that has been  extracted from matlab as CSV file ("moves.mo").
  I need to read this file into 14800 vectors with 8 values each. Can you please navigate me here?</p>
  
  <p>So far, I am here:</p>
  
  <pre><code>std::fstream inputfile;
  inputfile.open("moves.mo");
  std::vector&lt; std::vector&lt;int&gt;* &gt;  vectorsmovesList; 
  
  while (!inputfile.eof()) {
      std::string line;             
      getline (inputfile,line);
      if(""!=line) {        //if line is nonempty
  
         std::vector&lt;int&gt;* mvec = new std::vector&lt;int&gt;(); //allocate a vector vec(N)
   /* loop to read file has to go here */     
             }
  inputfile.close();
  
  }
  
  return 0;
  }
  </code></pre>
  
  <p>Thank you very very much!!!!</p>