aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/stack.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/stack.cpp')
-rw-r--r--doc/examples/stack.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/examples/stack.cpp b/doc/examples/stack.cpp
index f569004fc..0c00ed183 100644
--- a/doc/examples/stack.cpp
+++ b/doc/examples/stack.cpp
@@ -70,7 +70,7 @@ int main(int argc, char* argv[])
int skipped = 0;
for(int j = 1; 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;