Home > DeveloperSection > Forums > interact with external disk files and ftp in java
greg DORIAN
greg DORIAN

Total Post:1

Points:7
Posted on    March-28-2015 9:41 AM

 Java Javac 
Ratings:


 1 Reply(s)
 720  View(s)
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 


Manoj Pandey

Total Post:26

Points:188
Supported
Posted on    March-30-2015 7:30 AM

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

Don't want to miss updates? Please click the below button!

Follow MindStick