'saves logger data to a different set of files, for
``switch=True`` also the loggers name prefix is switched to
the new value'

def save(self, nameprefix, switch=False):

    if ((not nameprefix) or (type(nameprefix) is not str)):
        _Error('filename    prefix    must    be    a    nonempty    string')
    if (nameprefix == self.default_prefix):
        _Error((('cannot    save    to    default    name    "' + nameprefix) + '...",    chose    another    name'))
    if (nameprefix == self.name_prefix):
        return
    for name in CMADataLogger.names:
        open(((nameprefix + name) + '.dat'), 'w').write(open(((self.name_prefix + name) + '.dat')).read())
    if switch:
        self.name_prefix = nameprefix
