** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: projections.cpp,v 1.32 2000/12/16 06:12:47 kevin Exp $
+** $Id: projections.cpp,v 1.33 2000/12/17 22:30:09 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
bool
Projections::read (const char* filename)
{
- frnetorderstream fileRead (filename, ios::in | ios::binary);
- m_filename = filename;
-
- if (! fileRead)
+ m_filename = filename;\r
+#ifdef MSVC\r
+ frnetorderstream fileRead (m_filename.c_str(), std::ios::in | std::ios::binary);\r
+#else\r
+ frnetorderstream fileRead (m_filename.c_str(), std::ios::in | std::ios::binary | std::ios::nocreate);\r
+#endif\r
+
+ if (fileRead.fail())
return false;
if (! headerRead (fileRead))