Hi
I have a file, let's call it file.xml which contains information on the 1st and 3rd line (xml header and footer).
What I would like to do is always write to the 2nd line so that the header and footer remain in the correct place.
This is a gps python script so it's forever adding data to the file in a loop
Can anyone give me a few pointers on how this can be done?
many thanks