Shani

Shani

  • NA
  • 116
  • 62.4k

C# - Method help

Nov 21 2007 2:14 PM

Hi there,

I am just kind of stuck right now and looking over FileSystemWatcher Class but i need help. I have to create a class that will monitor and delete all files older thatXnumber  of days.

I have to create 2 methods

DeleteFilesOlderThan()

FilesOlderThan()  and similarly have DeleteFilesOlderThan() method call FilesOlderThan()

All i have done is this....

[CODE]

//Deletes the files older the days, hours, and minutes specified

public int DeleteFilesOlderThan(int Days, int Hrs, int Mins){}

//Reurns filenames having last modified time older than specified period

public string[] FilesOlderThan(int Days, int Hrs, int Mins){}

[/CODE]

Thanks for your help!!!


Answers (36)