I'm just curious as I'm new to programming. Whenever I want to read a file and get strings from the file. Say I have a file like this:
Name: John Smith
Address: example, address, 12345
... and so on
And the way i read the file and retrieve the information, I usually do it by reading the file line by line and tokenise each string. So I'll get an array of words. So my question is, is there a better way to do it?