** This is part of the CTSim program
** Copyright (C) 1983-2000 Kevin Rosenberg
**
-** $Id: array2dfile.cpp,v 1.3 2000/06/28 15:25:34 kevin Exp $
+** $Id: array2dfile.cpp,v 1.5 2000/07/09 08:16:17 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
+Array2dFile::fileWrite (const string& filename)
+{
+ return fileWrite (filename.c_str());
+}
+
bool
Array2dFile::fileWrite (const char* const filename)
{
return true;
}
+bool
+Array2dFile::fileRead (const string& filename)
+{
+ return fileRead (filename.c_str());
+}
+
bool
Array2dFile::fileRead (const char* const filename)
{
{
string id = idStr;
for (int i = 0; i < copyFile.getNumLabels(); i++) {
- Array2dFileLabel l = copyFile.labelGet (i);
- copyFile.labelGet(i).print(cout);
- l.print(cout);
+ Array2dFileLabel l (copyFile.labelGet (i));
string lstr = l.getLabelString();
lstr = idStr + lstr;
l.setLabelString (lstr);