Sorry! Cheers for your responses, I'm very much an amature at best when it comes to programming
as I learnt most of it using Unity, I like the idea of using a YAML library, I'll look into that.
I just really want the soldier data, and to automatically update it to a volunteer list, so someone might type a string stating "!Enlist|name|sex|skin" and have that assigned to soldiers
My current thinking is to read the each line and count indentation to find out when it's reading data outside and inside of the soldier class/nest/gobbledegook