Purpose
Returns the modified time of a file.
Syntax
double GetFileModifiedDate(String pathToFile);
- pathToFile: 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
LastModifiedTime = newModifiedTime;
}
}
}