You can use the Difference.DiffFiles method which compares two files using the internal diff engine, and return the linked list of DiffSegment s: DiffSegment ds = Difference.DiffFiles(fileA, FileType.Detect(fileA, null), fileB, FileType.Detect(fileB,