void TDataBase::write( opstream& os ) { dataCache->flush(); os.flush(); indexCache->flush(); os.flush(); TSortedCollection::write( os ); os.flush(); os << indexFile; os.flush(); os << dataFile; os.flush(); }