From 1a08f5740628ce8a26e3b2677918b3b4cfad9cbf Mon Sep 17 00:00:00 2001 From: Jean-Francois Remacle <jean-francois.remacle@uclouvain.be> Date: Tue, 12 Aug 2008 17:10:45 +0000 Subject: [PATCH] *** empty log message *** --- Mesh/Field.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Mesh/Field.cpp b/Mesh/Field.cpp index 07a0632964..3ed2972c37 100644 --- a/Mesh/Field.cpp +++ b/Mesh/Field.cpp @@ -219,7 +219,11 @@ class StructuredField : public Field if(update_needed) { error_status = false; try { - std::ifstream input(file_name.c_str()); + std::ifstream input; + if(text_format) + input.open(file_name.c_str()); + else + input.open(file_name.c_str(),std::ios::binary); if(!input.is_open()) throw(1); input. -- GitLab