INTERACT WITH EXTERNAL DISK FILES AND FTP IN JAVA

greg DORIAN

Total Post:1

Points:7
Posted by  greg DORIAN
Javac 
 1153  View(s)
Ratings:
Rate this:
hi i need to make a class that I can interact with files in a external disk and ftp in java... with a external disk i think that I'll use the java.io.File library but ftp I don't know!!!

when I say interact with files ... is copy, delete, count and list files in a directory 
  1. Manoj Pandey

    Post:26

    Points:188
    Re: interact with external disk files and ftp in java

    For interact FTP server use Apache Commons Net API. It is easy to write Java code for downloading a file from a remote FTP server to local computer. It has simple and comprehensive API that makes coding with upload files to FTP server with ease. 

     

        Download Apache Commons Net API

    After install apache commons Net api, import this

    import org.apache.commons.net.ftp.FTP;

    import org.apache.commons.net.ftp.FTPClient;

      Modified On Mar-30-2015 11:35:39 PM

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!