Whats wrong with the syntax

Whats wrong with below logic or syntax????

a missing ';' after the ']' ?
I don't know - what's the error message?

Vgresh,

I added the below logic and it seems I am doing wrong by comparing 2 different file formats. Here the sourcefile pattern and targetfile pattern are different:

Thanks any way

once again, what exactly happens? any error messages?

Debug output: