def get_data(file_name):
    """Transforms text from file into a list."""
    data_lst = []
    with open(file_name, 'r') as f:
        for line in f:
            data_lst.extend(line.split())

    return data_lst