O.P. [Help!] Writing to XML files
I want to write a script which has one part of its function to log certain messages to an xml file. Each time the script is run, it will add a few tags. for example, <Message>...</Message> for each message. Of course, it will have to have tags around the whole file, such as <Messages>...</Messages>. My query is this: How would I discard the last line of the saved file before writing the new tags? The closing tag would then be added back on.
Thank you,
|