def get_file_and_head(filename, n_head=5):
    """Get the contents of a file, and the head.

    Parameters
    ----------
    filename: str
        The name of the file to read.
    n_head: int
        The number of lines to include in the head.
    """
    with open(filename, "r") as fp:
        content = fp.read()
        fp.seek(0)
        try:
            head = [next(fp) for _ in range(n_head)]
        except StopIteration:
            head = []

    return content, head