LUALoriotPro WEB site

LoriotPro scripting documentation
Extensions for LUA language

Table of contents Search function

Print the current page Mail this  link UTUBE Channel version française

lp.CompFile

LoriotPro has extended the LUA sripting language by providing its own LUA libraries. The new functions provided are dedicated to the creation of monitoring and SNMP automation application.

Syntax

value = lp.CompFile('file1','file2')

Description

Compare two files

Parameters

file1 - the first file to compare

file2 - the second file to compare with file1

Return Values

value : 1 if succeeded

Return nil if an error occurs

Example

ret=lp.CompFile("c:/test1.txt","c:/test3.txt");
if ret==1 then
lp.Print("same file");
else
lp.Print("diff file : ",ret,"\n");
end


www.loriotpro.com