def load_lines(text_file):
    """
        Reads the text file and returns a list of lines.
    """
    lines = []
    with open(text_file, encoding='utf-8') as text:
        for line in text:
            lines.append(line.strip())
    return lines