I would wait for one of the gurus to speak up on this, but as its simply a text file with a distinct token I would think its gonna be fairly easy. STRTOK was really made for this, but it will not accept C++ strings far as I can tell.
EDIT: Looked this up and found a code segment that may help you. This is not mine, but it will provide an alternative to strtok for working with strings.
while(getline(iss, token, '-'))
std::cout << token << std::endl;