'Write the header as text to a file or a file-like object.
Equivalent to::
>>> Header.tofile(fileobj, sep=\'\n\', endcard=False,
...               padding=False, overwrite=overwrite)
.. versionchanged:: 1.3
``overwrite`` replaces the deprecated ``clobber`` argument.
See Also
tofile'

@deprecated_renamed_argument('clobber', 'overwrite', '2.0')
def totextfile(self, fileobj, endcard=False, overwrite=False):

    self.tofile(fileobj, sep='\n', endcard=endcard, padding=False, overwrite=overwrite)
