def read_list_from_txt(file):
    """
    Read a text file into a list, with each line as an element.
    :param file: the .txt file (with path).
    """
    with open(file) as txt_file:
        contents = txt_file.read().splitlines()

    print(">>> Loaded {} lines from [{}].".format(len(contents), file))
    return contents