string issues

trying to use fgets to read in a string, but keep getting a "no conversion function from std::string to char" error.
fgets is a C function which doesn't works with C++ std::string.
Use C++ streams and std::getline function to achieve same functionality.
thanks
Topic archived. No new replies allowed.