Notch Notch Manual 1.0
 Light | Dark
GetFileModifiedDate()

GetFileModifiedDate()

Purpose #

Returns the modified time of a file.

Syntax #

double GetFileModifiedDate(String path_to_file);

Parameters

path_to_fileThe path to the file to obtain the modified time.

Example #

LastModifiedTime = 0;
function Update()
{
    newModifiedTime = GetFileModifiedDate("c:\\myFolder\\myFile.csv");
    if(newModifiedTime != null)
    {
        if(newModifiedTime > LastModifiedTime)
        {
            // Do something here
            LastModifiedTime = newModifiedTime;
        }
    }
}