The thing is I don't know how to move the splitted elements into an associative hash, for example:

Code:
string line = "key: value\r\n";
chomp(line);

map<string,string> hash;

hash.insert(make_pair((...),(...)));
thanks