I\'d like to read a binary file and use something like std::string that automatically resizes the buffer and such.
std::string
I\'m using Visual C++. What are my op
The std::string class already does handle data with embedded NUL characters. What problem are you encountering?
Note that when using the .c_str() method, any embedded NUL character will terminate the returned C-style string.
.c_str()