If you're beginning with C++, there are a couple of tips I could give you.
First of all, don't bother with parsing. There are far more interesting things to do with your time. Choose an easier input format, like
playername John Doe
hitpoints 300
Notice that I'm using a white space to separate the value from the key. Now you can simply do something like:
std::string key, value;
while (<more input>)
{
input_file >> key;
std::getline(input_file, value);
if (key == "playername")
// whatever...
else if (key == "maps")
// stuff...
}