import traceback


def read_txt(*, file_path: str) -> str:
    """
    Read specified file's text.

    Parameters
    ----------
    file_path : str
        File path to read.

    Returns
    -------
    txt : str
        Target file's text.
    """
    with open(file_path, 'r', encoding='utf-8') as f:
        try:
            txt: str = f.read()
        except Exception:
            err_msg: str = (
                f'{traceback.format_exc()}'
                f'\nFailed the file reading: {file_path}'
            )
            raise Exception(err_msg)
    return txt