diff options
author | lloyd <[email protected]> | 2010-09-08 17:02:37 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2010-09-08 17:02:37 +0000 |
commit | d6c39e385e105da61797695c0583dd796e5af965 (patch) | |
tree | 7eb525c3891c8043cdcb2507942ea37fea276c34 | |
parent | fb9bbfcc8953cfa4a817b05a036289ea02082a77 (diff) |
Read input as binary
-rw-r--r-- | doc/examples/hash.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/examples/hash.cpp b/doc/examples/hash.cpp index feaa2e9b3..1a4ca1b64 100644 --- a/doc/examples/hash.cpp +++ b/doc/examples/hash.cpp @@ -36,7 +36,7 @@ int main(int argc, char* argv[]) int skipped = 0; for(int j = 2; argv[j] != 0; j++) { - std::ifstream file(argv[j]); + std::ifstream file(argv[j], std::ios::binary); if(!file) { std::cout << "ERROR: could not open " << argv[j] << std::endl; |