from pathlib import Path


def process_text(train_text_path):
    """
    Read .txt data.
    """
    metadata_path = Path(train_text_path)
    with metadata_path.open("r", encoding="utf-8") as file:
        txt = []
        for line in file.readlines():
            txt.append(line)

        return txt