template class FB { //T Prototype; ifstream file; TList * ptrlist; //it is not neccesary copy it public: FB(TList * l, char* path) : ptrlist(l), file(path){} //used for formating and eating whites //produces formated file tmp.tmp in working directory //long FormatCopy(ifstream & ifstm, char* oFilePath); long ReadObjects(); }; /* template long FB::FormatCopy(ifstream & ifstm, char* oFilePath) { ofstream ofstm(oFilePath); char c; while(!ifstm.eof()) { if( ifstm.good() && ofstm.good() ) { ifstm>>c; ofstm< long long FB::ReadObjects() { while(!file.eof() ) { T tmpObject; file>>tmpObject; if(!file.fail()) { ptrlist->Add(tmpObject); } else { char c; file>>c; cout<