in reply to In-place file manipulation

I usually just read from the file, modify, and write to a new file, then override the first file with the second when I am done. Probably not the prettiest solution, but it gets the job done.