def load_file_lines (file):
    """ Loads a file as a list of lines.

    Args:
        file (str): The path of the file.
    Returns:
        list of str: A list of lines in the file.
    """
    data = []
    with open(file, mode='r') as target:
        for line in target:
            data.append(line.rstrip('\n'))
    return data