Title: Message
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

Reply via email to