How do I write RIFF chunk data to the **end of a WAV file?** Yes, that's right, to the **end of a WAV file.** Why? Because that's the way the old program I'm replacing did it and the integrating programs are prepared for it that way and *they cannot be modified.*