in reply to Re: Capture Contents AND Overwrite without Opening Twice?
in thread Capture Contents AND Overwrite without Opening Twice?

Make sure to read the docs: Check the return values of the functions (... or die "truncate failed"; etc.), and note that truncate has some kinks in Windows.