I think you're (sort of) right. With the current approach, I think we
risk writing garbage to the COPY when we reach the end of the Reader.
Your proposed solution should work.
---
Maciek Sakrejda | Software Engineer | Truviso
1065 E. Hillsdale Blvd., Suite 230
Foster City, CA 94404
(650) 242-3500 Main
(650) 242-3501 F
www.truviso.com