You probably used the wrong getline() function. There are two of these functions, one that works with std::string and the other that works with C-strings.

Jim