cancel
Showing results for 
Search instead for 
Did you mean: 

REG: deleting a file

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Sorry to be a spoil sport but it would be nice if you read the following link before using the sun* packages:

http://java.sun.com/products/jdk/faq/faq-sun-packages.html.

Also the Apache Net package can help you achieve whats ur trying to : http://commons.apache.org/net/

Thanks,

LioneL

Answers (1)

Answers (1)

Former Member
0 Kudos

resolved