System::GetFileTime

System::GetFileTime will set the end of the file at the specified position.

System::GetFileTime(
   OSHandle FileHandle
:  UTCTime CreationTime,
   UTCTime LastAccessTime,
   UTCTime LastWriteTime
);

Parameters

FileHandleFrom previous call to System::CreateFile.
CreationTimethe timestamp of when the file is created.
LastAccessTimethe timestamp of when the file was last accessed/read.
LastWriteTimethe timestamp of when the file was last written to.

Return Values

The error.errorCode value will be set to the underlining windows error message code and the error.errorString will have a detailed description of the error.

Remarks

Example Use
  • TScript
main(){
   variable fileHandle, lastWrite;
   System::CreateFile(u"MyFile.txt",
      System::OPEN_EXISTING|System::READ_ONLY:fileHandle);
   System::GetFileTime(fileHandle,,,lastWrite);
   System::MessageBox(u"The last time the file was written to" 
              + lastWrite.ToString());
}

Since

TScript Version 1.6

Also See

System::CreateFile
Listen All
Comments (0)
Characters left: 2500
 
Ekky Software Homepage T-Accounts Online ObjectDatabase++ TScript Ekky Software Homepage T-Accounts Onlinee ObjectDatabase++ TScript