      If a filename is specified (instead of a file object),
        the entire file is opened, read, and closed before parsing.
        