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

This is an important consideration iff the file will be accessed by other processes during the run of the script, or if it's important that the file doesn't get corrupted by either the script dieing or getting shot down externally while it is modifying the file. (probably what MidLifeXis's comment was aimed at as well)