thank you,
I was thinking fwrite() had some way to write without appending or fopen could accommodate this but guess not.
Sam