This guy deserves it. Heavily.
--- Jason Bell <[EMAIL PROTECTED]> wrote: > MessageJohn you beat Alan and I to it............. > > We went through all this on Friday. > > Regards > Jason > > -----Original Message----- > From: John Patton [mailto:[EMAIL PROTECTED]] > Sent: 20 August 2002 15:23 > To: JDJList > Subject: [jdjlist] RE: deleting files > > > You will certainly get flamed if you don' t put a little effort in > yourself. Reading the suggested API's should bring your solution to light. > Then if you still have problems you can say you tried something. > > John. > -----Original Message----- > From: Ron Sher [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 20, 2002 11:11 AM > 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") 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 > ===== Mark Zawadzki Performance Engineer/DBA/Programmer extraordinaire� [EMAIL PROTECTED] [EMAIL PROTECTED] "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning" Robert Cringle (columnist, author, host of "Triumph of the Nerds") __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com To change your membership options, refer to: http://www.sys-con.com/java/list.cfm
