On Feb 26, 2004, at 3:59 PM, Marc Battyani wrote: > Yes, you are probably using a stream for which file-position is not > defined. How silly of me to not spot that. Thanks. Using the approach you describe works fine. Erik.