the problem is that the binary data contains the null byte (\0). I want to read the data from the string by length and not read it until the null byte.
How can I do it? (read data from string object by specific length and not until the null byte)
for(int i = 0; i < str.length(); i++) if(str[i]) std::cout << str[i];
Обсуждают сегодня