GetFileModifiedDate()
Purpose #
Returns the modified time of a file.
Syntax #
double GetFileModifiedDate(String path_to_file);
Parameters
path_to_file | The 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;
}
}
}