on 07-07-2008 11:48 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
resolved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.