Title: Message
I'm not sure why you addressed this to me. I didn't ask the question. I just warned the original poster.
 
John.
-----Original Message-----
From: Jason Bell [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 20, 2002 10:32 AM
To: JDJList
Subject: [jdjlist] RE: deleting files

John,
This will get you started.
http://javaalmanac.com/egs/java.io/pkg.html
 
Lots of examples, it's just a case of finding the diamonds in the rust.
 
Regards
Jase
 
-----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
-------------------------------------------------------------------------------------

The information contained in this message is proprietary of Amdocs,
protected from disclosure, and may be privileged.
The information is intended to be conveyed only to the designated recipient(s)
of the message. If the reader of this message is not the intended recipient,
you are hereby notified that any dissemination, use, distribution or copying of 
this communication is strictly prohibited and may be unlawful. 
If you have received this communication in error, please notify us immediately
by replying to the message and deleting it from your computer.
Thank you.

-------------------------------------------------------------------------------------

To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm

Reply via email to