in reply to Comparing files

I have waited quite a while to see whether anyone replies, but up to now it is a no.

There is something that discourages people from replying it. Is this your real code? Have you really tested it? When I ran it, it gave me syntax error.

The other thing discourages me is that your code is not indented.

I suggest you to modify your post a little bit, so someone CAN help.