<< copyfile | Files and folders functions | dir >> |
res = diff(filename_1, filename_2, with_eol) |
a string: a filename.
a string: a filename.
a logical: with end of line considered or not (true by default).
a string: '' if no diff detected.
a string: error message
diff_file compares two files and returns diff as unified format.
if compared files are equals, res is an empty string.
res = diff_file([nelsonroot(), '/etc/startup.m'], [nelsonroot(), '/etc/startup.m'])
res = diff_file([nelsonroot(), '/etc/startup.m'], [nelsonroot(), '/etc/finish.m'])
Version | Description |
---|---|
1.0.0 | initial version |
Allan CORNET