title: How to read data from a specific column in a text file
body: <p>I'm having a text file with some columns </p>
  
  <pre><code> name,age,address,gender
  </code></pre>
  
  <p>I know I can access a line with <code>getline();</code>, but when I get the string with the data that <code>getline();</code> returned I want to read some specific column. How do I do that ?</p>
  
  <p>I saw a solution to this problem but it was in java which I don't know yet, so I decided to post this for a c++ answer</p>