Re: Date attribute of a file

new topic     » goto parent     » topic index » view thread      » older message » newer message

Brian Broker wrote:

> Juergen Luethje wrote:
>> 
>> Craig Welch wrote:
>> 
>>> Is there any way with Euphoria that I can write read a file, modify it, 
>>> and write it back *without* changing the date?
>> 
>> You'll have to save the "time stamp" of the concerning file before writing to
>> it, and at the end that time stamp must be restored.
>> This can't be done with built-in Euphoria routines, but you can use the
>> concerning API functions of the operating system. If you are using Windows,
>> look at this program:
>> <<a
>> href="http://www.rapideuphoria.com/cgi-bin/asearch.exu?win=on&keywords=filedt.zip">http://www.rapideuphoria.com/cgi-bin/asearch.exu?win=on&keywords=filedt.zip</a>>
>> 
>> Regards,
>>    Juergen
> 
> I'm curious as to why you would need to do this.  I've found that using time
> stamps can efficiantly answer many questions when debugging a complex app
> under
> development.  Malicious intent?  Why should the time stamp matter?
> 
> -- Brian

Of course I don't know why Craig wants to do this.

I myself often set the time stamp of a self-written program, when I've
finished a release version. When the program is say version 1.20, I'll
give it the time stamp
   <current date> 01:20:00

Regards,
   Juergen

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu