def extract_data(source:str):
    """Read list of newline delineated ints from text file."""
    with open(source, "r") as f:
        data = f.readlines()
        data = [int(el) for el in data if el != "/n"]

    return data