I can not find official documentation on the Internet.
Edit I can't even find the correct link in my copy of the Josuttis Book , eighth print. It should have been in section 13.9 s. 627-631
Empirical evidence suggests that this is redundant IFF, none of std :: ios :: in or std :: ios: out passed:
#include <fstream> #include <iostream> int main(int argc, char** args) { std::ifstream ifs(args[0], std::ios::binary); std::cout << ifs.rdbuf() << std::flush; return 0; }
succeeds:
test | md5sum md5sum test
shows the same amount of hashes.
will fail (output with zero byte)
test | wc -c
sehe
source share