X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FclitkCommon.cxx;h=10f608e6ce8b7ba7c92d6085f4d1b1588a047e3d;hb=4f6aadc0552db99c03057d4aa40a7fc4a1697350;hp=785b0fd2c021ad087dd500a68ba0d03a60481b65;hpb=1b6c27b984f38e6a16edb99c78e513d85b53ea00;p=clitk.git diff --git a/common/clitkCommon.cxx b/common/clitkCommon.cxx index 785b0fd..10f608e 100644 --- a/common/clitkCommon.cxx +++ b/common/clitkCommon.cxx @@ -243,7 +243,7 @@ double clitk::ComputeEuclideanDistanceFromPointToPlane(const itk::ContinuousInde // Open a file for reading void clitk::openFileForReading(std::ifstream & is, const std::string & filename) { - is.open(filename.c_str(), std::ios::in); + is.open(filename.c_str(), std::ios::in | std::ios::binary); if ( is.fail() ) { clitkExceptionMacro("Could not open file for reading: " << filename << ". Error is : <"