import com.enterprisedt.net.ftp.*; public class FTPClientExample { public static void main(String[] args) { try { FTPClient client = new FTPClient(); client.setRemoteHost("ftp.example.com"); client.connect(); client.login("username", "password"); client.upload("localFile.txt", "remoteFile.txt"); client.disconnect(); e.printStackTrace(); } } }


上一篇:
下一篇:
切换中文