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() into an std::string to store in an array. How can this be done?

12 Answers
12

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *