FileWatchAdd adds a file to the list of watched files. If the operating system detects a change to the file the callback function is called.
Return Value
bool is TRUE, if the file could be added to the list of watched files.
Parameters
Complete file name.
Name of a callback function which will be called if the file has been modified. The callback function must be specified by the user. The callback function has one parameter, the complete filename of the watched file.
Example
FileWatchAdd("c:/test.txt", "MyReloadFunction");
def MyReloadFunction(ssFile)
{
// Do something with the file
....
}
id-679831