DiffCompareFiles

Typefunction
Dictionarylibrary.diff
LibraryUnified Diff Library
Syntax
DiffCompareFiles(<pFrom>,<pTo>,<pContext>)
Associationscom.livecode.library.diff
Summary

Produce a diff representing the changes between two text files

Parameters
NameTypeDescription
pFrom

The original source file. The produced diff will describe how to transform the contents of this file.

pTo

The updated source file. This will be compared to pFrom to produce the output diff.

pContext

The number of unchanged lines to include before / after each change in the diff.

Example

Values
NameTypeDescription
return

A string representing the changes between pFrom and pTo in unified diff format.

Description

Compare two files, producing a string representing the changes between them in unified-diff format.