J
Jason Heyes
How do you read the contents of a text file into a std::string? Does this
code use the right classes and functions for the job?
std::string s;
char c;
while (is.get(c))
s += c;
Thanks.
code use the right classes and functions for the job?
std::string s;
char c;
while (is.get(c))
s += c;
Thanks.