I already created a txt file using python with a few lines of text that will be read by a simple program. However, I am having some trouble reopening the file and writing ad
If you want to append to the file, open it with 'a'. If you want to seek through the file to find the place where you should insert the line, use 'r+'. (docs)