Produce a diff representing the changes between two text files.
Syntax
DiffCompareFiles(pFrom,pTo [,pContext])
Parameters
- pFrom: The original source file path. The produced diff will describe how to transform the contents of this file.
- pTo: The updated source file path. This will be compared to pFrom to produce the output diff.
- pContext: optiona. The number of unchanged lines to include before / after each change in the diff.
Example
put diffCompareFiles("test.txt", "test2.txt")
Compare two files, producing a string representing the changes between them in unified-diff format.
See also: DiffCompare, DiffPatch