You know ... i
wasn't going to say anything but ... this is a classic example of where an
answer has been given ... a very good answer ... [there is another one] ... and
yet the original poster still can't work out what to do.
Do you want us to
code your whole application for you ? ?? might be quicker! Save
everyone a lot of time!
[FYI: Examples of
listing files in a directory are common ... check out the official documentation
.. and also ... Google ... where i searched on "java listing files in a
directory" and out comes a plethora of results:
ooh just seen a
post in from John ... he's right you will get flamed ... and i am the one
flaming you! We will help .. but you need to be able to help
yourself!
To change your membership options, refer to:-----Original Message-----
From: Ron Sher [mailto:[EMAIL PROTECTED]]
Sent: 20 August 2002 16:11
To: JDJList
Subject: [jdjlist] RE: deleting filesThanks for your reply.Could you please be more specific and show me some code samples...Thanks again,RonTo change your membership options, refer to:-----Original Message-----
From: Mike S. [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 4:16 PM
To: JDJList
Subject: [jdjlist] RE: deleting filesList files with with java.io.File and java.io.FilenameFilter. Parse creation date from suffix's timestamp with java.lang.String and java.util.Date. Calculate date difference with java.util.Calendar. Delete file if difference greater than 4.============
Best Regards
MikeTo change your membership options, refer to:-----Original Message-----
From: Ron Sher [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 17:46
To: JDJList
Subject: [jdjlist] deleting filesTo change your membership options, refer to:Hi all,I'm creating a file using new FileOutputStream(fileName) ,where fileName is composed of a prefix taken with System.getProperty("OutFile", "\\Out") and the suffix is the current timestamp.The thing is, I want to be able to delete all files with the same prefix that are older than X days (where X is also a parameter).How do I do that?Thanks,Ron Sher
http://www.sys-con.com/java/list.cfm
http://www.sys-con.com/java/list.cfm
http://www.sys-con.com/java/list.cfm
http://www.sys-con.com/java/list.cfm
