#include <utility>
#include <fstream>
-#if 0
-#ifdef HAVE_SSTREAM
-#include <sstream>
-#else
-#include <strstream>
-#endif
-#else
#include "Lsstream.h"
-#endif
#ifdef __GNUG__
#pragma implementation "filetools.h"
FileInfo finfo(fname);
if (finfo.exist()) {
ifstream ifs(fname.c_str());
-//#ifdef HAVE_SSTREAM
std::ostringstream ofs;
-//#else
-//#warning The rumour goes that this might leak, but who really cares?
-// ostrstream ofs;
-//#endif
if (ifs && ofs) {
ofs << ifs.rdbuf();
ifs.close();
-//#ifdef HAVE_SSTREAM
return ofs.str().c_str();
-//#else
-// ofs << '\0';
-// char const * tmp = ofs.str();
-// string ret(tmp);
-// delete[] tmp;
-// return ret;
-//#endif
}
}
lyxerr << "LyX was not able to read file '" << fname << "'" << endl;