Aug-07-2018, 10:56 AM
Hi, I'm trying to add new line after a particular line.
I want the "TEST" line to be added after the "/22/" line
for line in file : if line.startswith('/22/'): #ADD LINE AFTER THIS line #WITH "TEST" AS CONTENTbut file.write("TEST") add a line at the end of the file
I want the "TEST" line to be added after the "/22/" line