hummm, just tried the code in post #6.

I get a 'Bad File mode ' error on the 'Put' line.

What's it need?