> Hi,

HerrO

> does not seem to update the last accessed time of c:\test
thats because by doing " > open(FILE,">c:\\test\\file.txt"); " you are
creating a new file. You should change that to
 "> open(FILE,">> c:\\test\\file.txt");". run this;

<~~~cut
#!PERL -w


open(FILE,'>> ./test.dat') || die "$!\n";
print FILE "hello";
close FILE;

print "last modified:\t" . scalar (localtime ( (stat "./test.dat")[8] ) );

<~~paste

hth,
Mark G
----- Original Message ----- 
From: "Andrew Watson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 16, 2003 2:20 AM
Subject: updating dos access time



>
> In Win32 how do I make the dos access time , that obtained via 'dir
> /TW', reflective of when I add a file to a directory.
>
> For instance
>
> running
>
> open(FILE,">c:\\test\\file.txt");
> print FILE "hello";
> close FILE;
>
> does not seem to update the last accessed time of c:\test
>
> Thanks
> Andrew
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to