write tape to output file