Hello i'm having trouble reading from files from fstream. I want to skip a word but don't know how to do so with input from files.
myfile >> avatar.name >> avatar.name >> avatar.name;
myfile >> avatar.hp >> avatar.hp >> avatar.hp;
myfile >> avatar.mana >> avatar.mana >> avatar.mana;
myfile >> avatar.level >> avatar.level >> avatar.level;
myfile >> avatar.strength >> avatar.strength >> avatar.strength;
myfile >> avatar.intelligence >> avatar.intelligence >> avatar.intelligence;
myfile >> avatar.wisdom >> avatar.wisdom >> avatar.wisdom;
myfile >> avatar.dexterity >> avatar.dexterity >> avatar.dexterity;
myfile >> avatar.charisma >> avatar.charisma >> avatar.charisma;
Now thats how i thought you would get past 2 groups of characters, "charisma = 10" would be one of the lines of in the file.