GetFileModifiedDate()
Updated: 4 Dec 2023
Updated: 4 Dec 2023
Returns the modified time of a file.
double GetFileModifiedDate(String path_to_file);
path_to_file | The path to the file to obtain the modified time. |
LastModifiedTime = 0;
function Update()
{
newModifiedTime = GetFileModifiedDate("c:\\myFolder\\myFile.csv");
if(newModifiedTime != null)
{
if(newModifiedTime > LastModifiedTime)
{
// Do something here
LastModifiedTime = newModifiedTime;
}
}
}