title: Ifstream, how to read next line after facing a specific character
body: <pre><code>    (example.txt)
      Tommy:16:Male
      Sam:23:Female
  </code></pre>
  
  <p>I wanted to code in C++ that take a data from the text file using ifstream but not the entire line.
  For example, the first column represent Name and I just want to take Name data.</p>
  
  <p>Is there a way to split ":" this character, just like Java line.split(":").</p>