I have a file, full of data in a certain format, I want to fill my own data structure with that data
for example, I can have a file like this:
John - Smith : 0123
children:
Sam
Kim
I want to do something with that string, in order to extract the data into for example
firstName = "John"
lastName = "Smith"
number = "0123"
children = ['Sam', 'Kim']
I hope there's an easier way than using separators..