Hi
I want to have my program delete a file if it already exists and then reopen it. In the process I expect the time stamp of the file to change from t0 to t1.
So that:
before program run file X.txt 2/27/2007 exists
Run program
1) delete X.txt
2) Open X.txt so that
X.txt 2/28/2007 exists
I have tried to
OPEN(NOUT,FILE=F)
close(NOUT,STATUS='DELETE')
and then reopen in hopes of having the create data change
when I view the file details (using Windows XP).
However, even though the file is deleted and recreated
it has the same time stamp as the original (2/27/2007 in above example).
If I put a point break after the CLOSE and wait a sec before the file is recreated the time stamp is correct.
I have ALSO tried OPEN(NOUT,FILE=F,STATUS='REPLACE')
And the timestamp is still not updated. Is there anyway
to do this ther than deleting the files before running the program?
Thanks
I want to have my program delete a file if it already exists and then reopen it. In the process I expect the time stamp of the file to change from t0 to t1.
So that:
before program run file X.txt 2/27/2007 exists
Run program
1) delete X.txt
2) Open X.txt so that
X.txt 2/28/2007 exists
I have tried to
OPEN(NOUT,FILE=F)
close(NOUT,STATUS='DELETE')
and then reopen in hopes of having the create data change
when I view the file details (using Windows XP).
However, even though the file is deleted and recreated
it has the same time stamp as the original (2/27/2007 in above example).
If I put a point break after the CLOSE and wait a sec before the file is recreated the time stamp is correct.
I have ALSO tried OPEN(NOUT,FILE=F,STATUS='REPLACE')
And the timestamp is still not updated. Is there anyway
to do this ther than deleting the files before running the program?
Thanks