title: C++ reading in a file, ignoring commas and outputting data to the screen
body: <p>I have a file in the format:
  FirstName,MiddleName,LastName,Major,City,State,GPA</p>
  
  <p>I'm trying to read in the file and output the data without the commas to the screen. This is what I have so far, but it only outputs the GPA's:</p>
  
  <pre><code>#include &lt;fstream&gt;
  #include &lt;iostream&gt;
  #include &lt;string&gt;
  #include &lt;sstream&gt;
  
  using namespace std;
  int main(){
      string fileline;
      string word;
      ifstream studentData;
      studentData.open("studentData.csv");
      while(studentData){
          getline(studentData,fileline);
          istringstream ss(fileline);
          while(getline(ss, word,','));{
              cout &lt;&lt; word &lt;&lt; '\n';
  
          }
  
      }
      return(0);
  }
  </code></pre>