def read_lines_in_list(file_to_read):
    """ Iterates over the lines in a file and adds the line to a list

    :param file_to_read: the location of the file to be read
    :return: a list where each entry corresponds to a line in the file
    """
    collect_list = []
    with open(file_to_read, 'r') as f:
        for line in f:
            collect_list.append(line.rstrip('\n'))
    return collect_list