N
Nico Grubert
Hi there,
I would like to open an existing file that contains some lines of text
in order to append a new line at the end of the content.
My first try was:
'456'
I supposed to have:'123\n456\n'
Does f = open('/tmp/myfile', 'w') overwrite the existing file or does
f.writelines('456') replace the first line in the existing file?
Nico
I would like to open an existing file that contains some lines of text
in order to append a new line at the end of the content.
My first try was:
'456'
I supposed to have:'123\n456\n'
Does f = open('/tmp/myfile', 'w') overwrite the existing file or does
f.writelines('456') replace the first line in the existing file?
Nico