read it and as you read it write it out to another file, but don't write the last line.
masijade
Industrious Poster
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
Is there a reason you're not working with the file as an xml document though a DOM api?
Ezzaral
Posting Genius
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
Perhaps
<team name="indianaTux">
<player>
<Name>Default Player</Name>
<Score>0</Score>
<Time>null minutes null seconds</Time>
</player>
<player>
<Name>Another Player</Name>
<Score>0</Score>
<Time>null minutes null seconds</Time>
</player>
</team>
Ezzaral
Posting Genius
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
Ezzaral
Posting Genius
15,986 posts since May 2007
Reputation Points: 3,250
Solved Threads: 847
If this is really what you want, and has nothing to do with XML, then re-read the reply #1.
And to complete, you then delete the original and rename the new to the original.
masijade
Industrious Poster
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
masijade
Industrious Poster
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494