Hi all, >You have missed & before inBuf. D'oh! Odd that I didn't get a warning. >Here is my modified version: It worked, but it seems to eliminate the file's contents in the process. I've tried various flags with no luck. Any ideas? Regards, Dan