writing items in list `itemlist` to file `outfile`,outfile.write('\n'.join(itemlist))