Possible Duplicate:
Determine file creation date in Java
I have a file named abc.txt
which is created by my application in c:
. Now I have to write logic in such way
that if file is created within 1 hour timeframe then I have to print:
file is created within 1 hour itself
and if file is created more than 1 hour before then to print the statement:
It has been more then 1 hour the file is created
How can I achieve this?