How to directly read a string in std::string
from a file in C++?
The examples I saw all use char xx[200];
How to directly read a string in std::string
from a file in C++?
The examples I saw all use char xx[200];
The <string>
realized a >>
operator, that can read a string into std::string
directly from std::istream
.