def text_from_textfile(file_name : str, encoding : str = 'utf_8') -> str:
    """
    Extract text from text file
    ===========================

    Parameters
    ----------
    file_name : str
        Name of the file to extract text from.
    encoding : str, optional ('utf_8' if omitted)
        The encoding of the file.

    Returns
    -------
    str
        The extracted text.

    Notes
    -----
        For list of encoding types please consult:
        https://docs.python.org/3/library/codecs.html#standard-encodings
    """

    with open(file_name, 'r', encoding=encoding) as instream:
        content = instream.readlines()
    return ''.join(content)