from typing import Union
from pathlib import Path


def load_txt(ffp: Union[Path, str]):
    """Loads a text file that has one entry per line"""
    with open(ffp, "r") as f:
        return [line.strip() for line in f.readlines()]