Skip to Content
0
Former Member
Jul 07, 2008 at 10:48 AM

REG: deleting a file

23 Views

Hi folks,

I have an XI server running on a Linux machine. I am working on developing an EJB Adapter module for XI. Now the requirement is to connect to a remote machine and pick and read the files lying in a folder. So I have opened an ftp connection and i could read the file and proceed with necessary processing.

Now the problem is I have to delete the file after reading it , I couldn't get a clue on how to do it since the ftpclient API which i used for picking the files doesn't provide a method for deletion. The API i have used is sun.net.ftp.FtpClient .

Can someone suggest me how to accomplish this?

Thanks

Best Regards

Mohan.