Read in the entire file, edit the bit you are interested in, write file back out again. Simple..?

------------------
- Chris
[email protected]
If it ain't broke - don't fix it