from typing import List


def txt_to_list(txtfilename: str) -> List[str]:
    """
    Reads in file, splits at newline and returns that list

    :param path: Path to dir the file is in
    :param txtfilename: Filename
    :return: List with lines of read text file as elements
    """
    with open(txtfilename, "r", encoding="UTF-8") as f:
        llist = f.read().split()
        return llist