[DUG] File age locator function

Jeremy Coulter vss at vss.co.nz
Wed Jan 9 18:21:30 NZDT 2008


Vikas, there are some controls out there now that show the differences
between files called rmControls...they are free and I see there is D5
support.
http://www.delphi32.com/vcl/4834/ is a link I found.
It highlights the differences in the files, and its very similar to MS
Visual SorceSafe's file difference viewer.
 
Jeremy

  _____  

From: delphi-bounces at listserver.123.net.nz
[mailto:delphi-bounces at listserver.123.net.nz] On Behalf Of Vikas...
Sent: 9 January 2008 17:23
To: delphi at moorhouse.net.nz; NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] File age locator function


Hi David
 
well actually i am writing a file parser as one module for my project which
actually shows the diference i done in new file wrt to old file
 
But like you said yes the time stamp will change and it isnt the ideal
approach i belive now.
 
i like to know is there anyway in delphi we can trace how many times the
file has been modified or let say how many times the file has been saved
right from the day it has created.
 
Regards
Vikas
 


 
On 1/9/08, David Moorhouse <delphi at moorhouse.net.nz> wrote: 

Hi Vikas

What exactly are you trying to do with the detection of the file age ?

The file timestamp will reflect the system time at the time the file is 
saved - so obviously if the system time is changed then the timestamp on
the file will reflect that changed timestamp !

HTH

David


On Tue, 8 Jan 2008 15:37:22 +0530, you wrote:

>Hi, 
>
>I have one query regarding the age of the file.
>
>well is there anyway to find which file is new one. Ok let me explain  my
>problem usign an example
>
>let say i have 2 files both same files   text1.txt  and text1.
>
>data is text1
>*************
>Delphi 5
>*************
>
>and it is genared at say 8th jan 2008 2:30 pm
>
>now i open the tex1 file again and add more lines in it 
> data is text1
>*************
>Delphi 5  try Delphi 6
>*************
>
>Now the file is saved at say 8th jan 2008 3:00pm
>
>when i used FileAge function it showed file saved at  3:00pm is new 
>
>
>but i faced one problem i changed my system time to 10 december 2007 and i
>added more lines in it
>
> data is text1
>*************
>Delphi 5  try Delphi 6
> try Delphi 2007 
>*************
>
>Adn i saved it at 10 december 2007 4 pm
>
>now the 10 dcember file should be the altest one sicne i have just done
>canges in it
>but the file age function failed here it showed the file genrated at 
>10december the old one and things went completly wrong
>
>Can any one suggets me any function or way i can track the file chnage i
>mean any way i can trace the cahnce ireespective of system time 
>
>i will really apreciate your help since i am badly struck at this stage
>
>Regards
>Vikas


_______________________________________________
NZ Borland Developers Group - Delphi mailing list 
Post: delphi at listserver.123.net.nz
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to delphi-request at listserver.123.net.nz with
Subject: unsubscribe





-- 
  vikas 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20080109/4f7bea86/attachment.html


More information about the Delphi mailing list