I\'d like to read a binary file and use something like std::string that automatically resizes the buffer and such.
I\'m using Visual C++. What are my op
std::string allows NUL characters so you can just go ahead and use that.
There is no problem with using c_str() or data(). Yes, the embedded NULs will be in your data, but if you don't use them to terminate your strings (you'll need to call length() to find out how many bytes are in your string) then all will be good.