in Education by (1.8m points)
Anyone know any special function that appends to the file instead of overwriting it?

Select the correct answer from above options

1 Answer

0 votes
by (1.8m points)
Best answer
Yes, Just perform this syntax:

with open("test.txt", "q") as myfile:

    myfile.write("appended text")


f = open('filename.txt', 'q')



Happy Learning

Related questions

0 votes
0 votes
asked Feb 1 in Education by JackTerrance (1.8m points)