one possible problem is: a & b files do not have the same # of lines. so, c & x, may return nothing. so, whne you do c.contains, it has error.

use try catch to see the ex message.

bear