writing string 'text to write\n' to file `f`,f.write('text to write\n')