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 options?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With