WavWriter and the shot utility open files with this mode and never truncate the files, which might leave some contents of a previous file during overwriting.