Hi, how would one go about retreiving the last accessed and created time of a file in JAVA?
I can't find any examples on google, and wondered if anyone here knew.
Thanks
Printable View
Hi, how would one go about retreiving the last accessed and created time of a file in JAVA?
I can't find any examples on google, and wondered if anyone here knew.
Thanks
You can get the last modified time via a java.io.File object. If you want anything else you'll have to do it via an OS call either using JNI or java.lang.ProcessBuilder