Will handle all the file reads/writes for all my classesCode:#ifndef FILEIODATA_H #define FILEIODATA_H template <class T> class FileIOData { public: FileIOData() {}; bool WriteToFile (std::ostream& out, T& data) { out << data; return out.fail(); } bool ReadFromFile (std::istream& in, T& data) { in >> data; return in.fail(); } }; #endif



LinkBack URL
About LinkBacks




, anyway, was asking the syntax ... but will go the namespace route ...thnx