import scala.collection.JavaConversions._ import scala.io.Source import difflib.DiffUtils val d1 = Source.fromFile("src/test/examples/diff01.txt").mkString.split('\n').toList val d2 = Source.fromFile("src/test/examples/diff02.txt").mkString.split('\n').toList DiffUtils.diff(d1, d2).getDetails