In regards to the related question, I'd like to know how to add text and/or lines to the beginning of a file in Python, as its been suggested that is an easier language for text/file manipulation. So, while I asked the previous, linked, question for C++, can anyone point me to how to do this with Python?
Quote from the linked (related) question:
I'd like to be able to add lines to the beginning of a file.
This program I am writing will take information from a user, and prep it to write to a file. That file, then, will be a diff that was already generated, and what is being added to the beginning is descriptors and tags that make it compatible with Debian's DEP3 Patch tagging system.
Anyone got any suggestions, or code?
Related: Adding text and lines to the beginning of a file (C++)