aspose file tools*
The moose likes Java in General and the fly likes File Attributes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "File Attributes" Watch "File Attributes" New topic
Author

File Attributes

Kevin Fonner
Greenhorn

Joined: Sep 20, 2001
Posts: 21
How can I access the attributes of a file such as creation time and last modified with java. Are these properties stored within the file?
Jeff Smith
Ranch Hand

Joined: May 04, 2001
Posts: 50
You can use the lastModified() method on a File to get the time it was last modified. I'm not sure if it's possible to get the creation date or not.
Jeff
Kevin Fonner
Greenhorn

Joined: Sep 20, 2001
Posts: 21
Would it be posible to create your own attributes and save them to a file?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: File Attributes