diff --git a/Mesh/Field.cpp b/Mesh/Field.cpp index 07a06329645521d9f17dfee84f533dd397347f77..3ed2972c3711bed464ea4d09d052d4cf9d345071 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.