So as the description describes, I would like to add text to a file in a sequential manner. Say, for example I have a file like this (NOT HTML, this is just an imaginary languag
The most pythonic way for parsing markup is to use a suitable module to parse it.