@classmethod
def fromtextfile(cls, fileobj, endcard=False):
    """
        Read a header from a simple text file or file-like object.

        Equivalent to::

            >>> Header.fromfile(fileobj, sep='\\n', endcard=False,
            ...                 padding=False)

        See Also
        --------
        fromfile
        """
    return cls.fromfile(fileobj, sep='\n', endcard=endcard, padding=False)
