import com.enterprisedt.net.ftp.*;
public class FTPClientExample {
public static void main(String[] args) {
try {
FTPClient ftp = new FTPClient();
ftp.setRemoteHost("ftp.example.com");
ftp.setUserName("username");
ftp.setPassword("password");
ftp.connect();
ftp.put("local-file.txt", "remote-file.txt");
ftp.get("remote-file.txt", "local-file.txt");
ftp.disconnect();
e.printStackTrace();
}
}
}