just found out how to write and read to a csv file. It's very helpful, but im having some trouble with it. I noticed that when I scroll down in the csv file, it creates new lines, which then messes up when I want to append data to the csv file (it shows up at the bottom of a bunch of empty lines). So what I plan on doing is: Going down the document until it finds an empty row and get that line number with the line_num reader object. So then I would just need to be able to write to a specific line. Is that possible?
I have been using this webpage as a guide. https://docs.python.org/3/library/csv.html
csvmodule around thefileinputmodule, but your idea of getting the line number and then doing something, thefileinputstuff is thatsomething; you'll just need to usecsvto write a row to anio.BytesIOorio.StringIOinstead of to the real file, then usefileinputto write itsgetvalue()as a line.