python writelines

writelines command to write all lines to a file

writelines command to write all lines at once to a file