// saves the copySelList void EditList::SaveCopy(INXString Info) { ofstream datafile(Info); //put an error trap ConData *blob; datafile << "IconData" << endl; INXPOSITION pos; pos = copySelList->GetHeadPosition(); if (!datafile.good()) { AfxMessageBox("File could not be written"); } while (pos) { blob=(ConData *) (copySelList->GetNext(pos)); datafile<<"BEGIN_BLOCK"<<endl; blob->Save(&datafile); } datafile<<"END_OF_BLOCKS"<<endl; datafile.close(); }