How to directly read a string in std::string from a file in C++? [duplicate]

Use like, File_object>>string_variable;

Leave a Comment