Oh sorry, my bad. I just scrolled up and looked at the first post, not realizing it wasn't the first page
Looking at your code, you seem to do a lot of manual work to extract strings, split and parse them.
std::ifstream::operator>> is sometimes not flexible enough to do everything, but it could still simplify a lot if you use formatted I/O capabilities of the standard library.
I once wrote a simple parser for a text file where every line is either empty or contains a key-value pair according to the format
key = value, with extremely few code:
std::ifstream file(filename);
std::map<std::string, double> map;
std::string key;
std::string assignment;
double value;
while (file >> key >> assignment >> value)
map[key] = value;
It will be more complex to handle comments and special cases, but maybe this can still help as an inspiration.