def save( self, fname ):
		'Write the db to disk files (FAST!)'
		cfg = (self.schema, self.rowcount)
		cPickle.dump( cfg, open(fname+'.cfg','wb'), -1 )
		for field in self.flist:
			fh = open( '%s__%s.dat' % (fname,field), 'wb' )
			self.data[ field ].tofile( fh )
Write the db to disk files (FAST!)
recipes/Python/577697_Simple_numeric_database/recipe-577697.py