I am having trouble where to begin reading in my text file my little program I created.
below is the text file i want to read into a struct in my program.
I just want some help on parsing the file. whats the best way to do it?
I could read each line into a string, search for a ':' and then read the file into my struct, but that seems a little tedious to me. surely there is a better way. Just some hints and tips to put me in the right direction. I am trying to use only c++ but yeah I now a struct is from C. Not ready for classes just yet.
I don't want someone to write the code for me please!(at least not yet!)
Name : John
Race : Human
Class : Fighter
Strength : 18
Intelligence : 10
Dexterity : 14
Wisdom : 8
Charisma : 18
Luck : 10