Menu

#Appending

1 post

Feed
1 of 1 post
0Read More

Writing to CSV file is appending instead of overwriting

Reddit r/learnpython·u/Hippopotamosssss·7 months ago
#mKeI7L26
#fiction#nonfiction#book#file#appending

*SOLVED* Had to read the file, make the changes, then write it. Thanks everyone! So I'm trying to write a randomizer for books using two csv files (one for fiction and one for nonfiction) and I want the line with the chosen book to be erased from the csv…

15s