def dump2file(self, obj, filepath, override=False, **kwargs):
<EOL>if override is False:<EOL><INDENT>if os.path.isfile(filepath):<EOL><INDENT>raise _FileAlreadyExists(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>".format(filepath))<EOL><DEDENT><DEDENT>if str(filepath[-<NUM_LIT:3>:]) not in self._save_funcs.keys():<EOL><INDENT>raise _FileTypeError(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>"<STR_LIT>".format(str(filepath[-<NUM_LIT:3>:])))<EOL><DEDENT>self._save_funcs[str(filepath[-<NUM_LIT:3>:])](obj, filepath, **kwargs)<EOL>
Dump a dictionary into a file. (Extensions: XYZ or PDB)

Parameters
----------
obj : :class:`dict`
    A dictionary containing molecular information.

filepath : :class:`str`
   The filepath for the dumped file.

override : :class:`bool`
   If True, any file in the filepath will be override. (default=False)