GetFileTime
This function returns the time a file was last modified.
Syntax
- static unsigned int GetFileTime(const std::string& path)
Parameters
- path: the path to the file to check the time of.
Returns
Returns the time the specified file was last modified at.
Example
#include "Leadwerks.h"
using namespace Leadwerks;
int main(int argc, const char *argv[])
{
//Create a file
std::string path = "MyFile.txt";
FileSystem::CreateFile(path);
//This will print the file creation time
System::Print(FileSystem::GetFileTime(path));
return 0;
}