How to connect to FTP server?
The example below shows you how to connect to an FTP server. In this example we are using the
FTPClient class of the Apache Commons Net. To connect to the server we need to provide the FTP server name. Login to the server can be done by calling the
login() method of this class with a valid username and password. To logout we call the