It works for me. I've tested it under Windows XP Pro 64-bit (I assume it should be
pretty much the same for all the Windows version) from a DOS console and doing
`dir' I get:
6/10/2008 15:55 0 new_test.txt
6/10/2008 15:55 6,060 test.txt
`test.txt' was my original file and `new_test.txt' is the file I created using
your code and using `stamp'.
In Windows explorer both the accessed time and modified time are for June 10th
2008, but not the creation time which is set to today. This is definitely in line
with the specification of the `stamp' routine.
Maybe this depends on the file system being used (I use NTFS).
Regards,
Manu