From db419a33bd61daedcc0a298e3ae95e5e7d6abe58 Mon Sep 17 00:00:00 2001 From: dmv Date: Wed, 20 Oct 2010 15:53:10 +0000 Subject: [PATCH] Win 5.1.4: problem with reading ASCII study, saved in linux --- src/HDFPersist/HDFascii.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/HDFPersist/HDFascii.cc b/src/HDFPersist/HDFascii.cc index 954ca3d2b..9c36800d3 100644 --- a/src/HDFPersist/HDFascii.cc +++ b/src/HDFPersist/HDFascii.cc @@ -386,7 +386,7 @@ char* HDFascii::ConvertFromASCIIToHDF(const char* thePath, aFullName = std::string(thePath)+".ascii_tmp"; } - FILE *fp = fopen(thePath, "r"); + FILE *fp = fopen(thePath, "rb"); if(!fp) return NULL; HDFfile *hdf_file = new HDFfile((char*)aFullName.c_str()); -- 2.39.2