Rob, I don't know if you've done much work on diff.c since your Aug. 8 post that had attachment.c, but I tried that program and it apparently gets into an infinite loop with a certain pair of files. I can send them to you or attach them to a post here if you like.