title: Library or API that will compare two text file and generate a difference text file in groovy
body: <p>I am using Groovy Script</p>
  
  <p>Is there any Library or API that will compare two text file and generate a difference text file automatically.</p>
  
  <p>Description:</p>
  
  <p>I have on text file "old.txt" having some data. After I am changing the content of the "old.txt" like inserting one line, deleting one line and updating some line.</p>
  
  <p>Can any one please tell is there any library that can compare and give the output as giving by the "TortiosUdiff" .patch file.</p>