def get_lines_as_list(filename, to_del='\n'):
    """Returns all the lines of the file in a list"""
    with open(filename, "r") as f:
        text = f.readlines()
    f.close()
    lines = list([])
    for i in range(len(text)):
        lines.append(text[i].rstrip(to_del))
    return lines