I need to use an std::string to store data retrieved by fgets(). To do this I need to convert the char* return value from fgets(
std::string
fgets()
char*
fgets(
I need to use std::string to store data retrieved by fgets().
Why using fgets() when you are programming C++? Why not std::getline()?
std::getline()