file.lastModified() returns the last modified date. File does not seem to have any method to fetch lastAccessed date. Is there a way to programmatically fetch t
file.lastModified()
Try this:
javaxt.io.File file = new javaxt.io.File("file-path"); file.getLastAccessTime();