And, if we write your application for you, we won't be bothered by clueless posts about "How do I delete a file," esp. when the docs work at answering stuff like this.
>From: Alan Williamson <[EMAIL PROTECTED]> >Reply-To: "JDJList" <[EMAIL PROTECTED]> >To: "JDJList" <[EMAIL PROTECTED]> >Subject: [jdjlist] RE: deleting files >Date: Tue, 20 Aug 2002 15:24:18 +0100 > >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: > >http://javaalmanac.com/egs/java.io/pkg.html ><http://javaalmanac.com/egs/java.io/pkg.html> ] > >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! > > > >-----Original Message----- >From: Ron Sher [mailto:[EMAIL PROTECTED]] >Sent: 20 August 2002 16:11 >To: JDJList >Subject: [jdjlist] RE: deleting files > > >Thanks for your reply. > >Could you please be more specific and show me some code samples... > >Thanks again, > >Ron > >-----Original Message----- >From: Mike S. [mailto:[EMAIL PROTECTED]] >Sent: Tuesday, August 20, 2002 4:16 PM >To: JDJList >Subject: [jdjlist] RE: deleting files > > >List 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 >Mike > >-----Original Message----- >From: Ron Sher [mailto:[EMAIL PROTECTED]] >Sent: Tuesday, August 20, 2002 17:46 >To: JDJList >Subject: [jdjlist] deleting files > > > >Hi all, > >I'm creating a file using new FileOutputStream(fileName) ,where fileName >is >composed of a prefix taken with System.getProperty("OutFile", " \\Out ><file://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 > >To change your membership options, refer to: >http://www.sys-con.com/java/list.cfm > >To change your membership options, refer to: >http://www.sys-con.com/java/list.cfm > >To change your membership options, refer to: >http://www.sys-con.com/java/list.cfm > > > >To change your membership options, refer to: >http://www.sys-con.com/java/list.cfm ----------------------------------------------- Joseph B. Ottinger [EMAIL PROTECTED] http://enigmastation.com IT Consultant _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com To change your membership options, refer to: http://www.sys-con.com/java/list.cfm
