def text_in_file(text, filepath, encoding="utf-8"):
    """Return True of the text can be found in the content of the file

    To do so: open the file in read and text mode with the right encoding, read
    the content of the file and check whether the `text` sequence is a
    sub-sequence of the text content of the file.
    """
    with open(filepath, mode="r", encoding=encoding) as f:
        text_content = f.read()

    # Or equivalently:
    #
    #   from patlib import Path
    #
    #   filepath = Path(filepath)
    #   text_content = filepath.read_text(encoding=encoding)
    #
    return text in text_content