X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=libctsim%2Farray2dfile.cpp;h=88e11e16c236a7a7a68e228978e7f7094a4c82ca;hp=bda792565100e5057cf91924008bc9f81d48953c;hb=c0f892798de8f89715266150f7d8e413f2cf29fe;hpb=4a5567b8df652cc3168bb9d439bc23f973a2b5ea diff --git a/libctsim/array2dfile.cpp b/libctsim/array2dfile.cpp index bda7925..88e11e1 100644 --- a/libctsim/array2dfile.cpp +++ b/libctsim/array2dfile.cpp @@ -9,7 +9,7 @@ ** This is part of the CTSim program ** Copyright (c) 1983-2001 Kevin Rosenberg ** -** $Id: array2dfile.cpp,v 1.28 2001/01/27 21:02:20 kevin Exp $ +** $Id: array2dfile.cpp,v 1.29 2002/05/28 18:43:16 kevin Exp $ ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License (version 2) as @@ -358,11 +358,8 @@ Array2dFile::fileRead (const char* const filename) { m_filename = filename; -#ifdef MSVC frnetorderstream fs (m_filename.c_str(), std::ios::out | std::ios::in | std::ios::binary); -#else - frnetorderstream fs (m_filename.c_str(), std::ios::out | std::ios::in | std::ios::binary | std::ios::nocreate); -#endif + if (fs.fail()) { sys_error (ERR_WARNING, "Unable to open file %s [fileRead]", m_filename.c_str()); return false;