(example.txt)
Tommy:16:Male
Sam:23:Female
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.
Is there a way to split ":" this character, just like Java line.split(":").