Ask a Question

Groovy script to compare two text files

NaveenKumar11
Occasional Contributor

Groovy script to compare two text files

Hi,

 

Please share me the groovy script.

 

  • to read two text files
  • compare the above text files and print the difference

 

Thanks

Naveen

14 REPLIES 14
ShasiSingh
Occasional Contributor

Hi, This is a working Code, if you are using XML, But your question Title suggest ( Compare text files ) , and your shared sample talking about XML and your comments are talking about jason. 

 

What you are looking for ? and where you have an error. could you please share the same.

 

yes this code is working but unfortunately i need only the tag names and I do not want to print any value mismatches for it. Can we have that code as well please.

Hello,

 

This code is working but i do not  want the value mismatches in it.I need only the node name mismatches.

Hello,

 

This code is working but i do not  want the value mismatches in it.I need only the node name mismatches.

 

 

Can some one help me please.
cancel
Showing results for 
Search instead for 
Did you mean: