Reading múltiple info from single input(csv)

Reading múltiple info from single input(csv)

Im working on a little project. Im reading a qrcode with this formar "name:your-name,age:99". The idea is take that values and pase to a variable so i can work with them, like calculate age of birth and send it too.

Im reading that map can be usefull but dont know how read until the "," and the assign next value.