Get access and creation time for a file.
1 posts in topic
Flat View  Flat View

Posted By:   Siddhartha_Mehta
Posted On:   Monday, December 16, 2002 12:55 PM

Is there any way in Java to retrieve the access and creation times for a file?? I checked in Java.IO.File and there is only one method "lastModified()" which returns the last modified time. I read one of the similar questions in the forum, but that was in 1999 and the answer to that was NO. I was wondering if SUN added this feature in its latest version. Please let me know.


Re: Get access and creation time for a file.

Posted By:   vinay_salehithal  
Posted On:   Tuesday, December 24, 2002 11:22 AM

I dont think such an option is available.
One way around it is to incorporate the timstamp in the name of the file,when that file is being created. But this is possible only if ur code does the file creation.
About | Sitemap | Contact