def readText(text_file)->str:
    """Read a text from a file."""
    text = ""
    with open(text_file,'r',encoding='utf8') as rtextFile:
        text = rtextFile.read()
        text = (text.replace("\n","").replace("\r", ""))
    return text