Results 1 to 3 of 3
  1. #1
    leonard is offline Member
    Join Date
    Jul 2007
    Posts
    43
    Rep Power
    0

    Default how to get information of a file

    I have a file named "help.txt". I want to know when was it created, when was its last modification and so on.
    Do I have to program this? or Is there any class to do that?

    thanks

  2. #2
    brianhks is offline Senior Member
    Join Date
    Jul 2007
    Posts
    135
    Rep Power
    0

    Default

    java.io.File will get you most of what you want. It will get the last modified time but I do not think it can get the created time.

  3. #3
    leonard is offline Member
    Join Date
    Jul 2007
    Posts
    43
    Rep Power
    0

Similar Threads

  1. Replies: 3
    Last Post: 04-07-2008, 07:02 PM
  2. system information
    By nitinborge5 in forum New To Java
    Replies: 1
    Last Post: 08-07-2007, 10:25 AM
  3. Information about Struts
    By Felissa in forum Web Frameworks
    Replies: 2
    Last Post: 07-02-2007, 05:40 PM
  4. Some information about Hibernate
    By Marcus in forum JDBC
    Replies: 2
    Last Post: 07-02-2007, 05:26 PM
  5. Some information about spring
    By Albert in forum Web Frameworks
    Replies: 2
    Last Post: 07-02-2007, 05:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •