I don't know why that is. The file Comparison.txt should be in the same directory as the script and as far as I can tell should have data written to it like I showed. Try using a full path instead of just the filename. -------------------------------------------------

Mike, it looks like it should work. You are not using Unix or Linux so it should not be a problem of permissions. It works fine for me when I tested the exact code and file you attached. -------------------------------------------------