0
How to append text in file without deleting initial text
in python when I am writing some text in a file with file.write() the initial text present in the file are deleted.....how to append some text in file without deleting the initial text.....??
2 Respuestas
0
use the append flag for when you open your file. mode='a'
the other flag options are here if you search the page for the 'open' function
https://docs.python.org/3/library/functions.html#open
0
thanx richard for your help