def write_to_text(path, dataset):
    """ write dataset to file located at path """
    with open(path, 'w') as outfile:
        outfile.write(dataset)
    outfile.close()
    print('dataset has been written to file found at {}'.format(path))
