How to read file attribute "last accessed" with plain java

H

Hannes Heckner

Is there any possibility to read the windows specific file attribute
"last accessed" with plain java?

If not in plain java, any solutions already available?

Best regards
Hannes
 
Y

Yu SONG

Hannes said:
Is there any possibility to read the windows specific file attribute
"last accessed" with plain java?

If not in plain java, any solutions already available?

Best regards
Hannes

Use JNI(or You can write a standalone program outputing to stdout which
can be caught in Java)

I hope this post will help you.
http://msdn.microsoft.com/library/d...us/fileio/base/getfileinformationbyhandle.asp


--
Song

/* E-mail.c */
#define User "Yu.Song"
#define Warwick "warwick.ac.uk"
int main() {
printf("Yu Song's E-mail: %s@%s", User, Warwick);
return 0;}

Further Info. : http://www.dcs.warwick.ac.uk/~esubbn/
_______________________________________________________
 
L

Liz

Hannes Heckner said:
Is there any possibility to read the windows specific file attribute
"last accessed" with plain java?

If not in plain java, any solutions already available?

Best regards
Hannes

Not sure if last accessed attribute is available on all OS.
However, if you want last modified then the "File" class has method

public long lastModified()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,771
Messages
2,569,587
Members
45,097
Latest member
RayE496148
Top