I hava a File and I want to know about the 'Creation Date' & 'Last Modification Date' of that File. Is this possible without using JNI?

Mathias Neuhaus

you can get the 'last modified' timestamp by

  File file = new File ("someName");

  long lastModified = file.lastModified ();

(no idea about 'creation time')

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.