def text_from_file(fname):
    """
    Read text from a file.

    Parameters
    ----------
    fname: str

    Returns
    -------
    text: str
    """

    with open(fname, "r") as f:
        text = f.read()

    return text