def read_file(filepath):
    """Reads text file and returns each line as a list element.

    Parameters:
        filepath (str): path to file

    Returns
        list: list of strings
    """
    data = []
    with open(filepath, 'r', encoding='utf-8') as file_obj:
        for line in file_obj.readlines():
            line = line.strip()
            data.append(line)
    return data