I'm creating a small prog that acts as an updater/starter for an online game.
There are 3 files that can change frequently and I want the starter to compare a client's local files and, if older/different, replace the client files with the newer/correct files.
I've been looking at fileutil but only see the ability to see if a file exists and not compare.
I thought "file time" might be an option and found this code from another thread here. Is it possible to use this and, if so, how ?
function getcreationtime(fn:string;var v: TDateTime):Boolean;
var fl:TSearchRec;
begin
result:=GetFileInformation(fn,fl);
if result then
v:=filetimetodatetime(fl.FindData.ftCreationTime);
end;
Long term I want to make this into an auto updater.
I'm using HttpSend to retrieve files from remote server and save them locally.
Any help much appreciated.