![]() |
| ||
| Last Edited I'm trying to find the best way to find out when a fiile was last modified and if it hasn't been modified in the last 7 days move it to a certain folder. At the moment i'm reading in the files using a "for" loop, storing them in an array as objects. Sorry i haven't got the code on me at the moment, i remember a friend telling me there's a lastModifief() method but you can only compare it to another last modified, i'm just wondering is there any potential calendar methods i could use? Any help is appreciated regards dave |
| ||
| Re: Last Edited Hie everyone, Quote:
Quote:
I think your friend lied to you :cheesy: This is the api see it for yourself http://java.sun.com/j2se/1.4.2/docs/...a/io/File.html This ia sample of how to use the last modified method http://www.rgagnon.com/javadetails/java-0068.html I hope this helped you Yours Sincerely Richard West *********************************************************** |
| All times are GMT -4. The time now is 5:48 am. |
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC