To expand a little on the previous post, first set up a constant that would hold the number of miliseconds in the three month period--approximately 90 days. Subtract this number from the current day's date which can be found using System.currentTimeMillis(). If the date of the file( from the lastModified() method of File) is less than the number just calculated above, then delete it; else keep it. Hope this helps. -Jason
Post by:autobot
Nothing? Or something? Like this tiny ad:
a bit of art, as a gift, that will fit in a stocking