import com.enterprisedt.net.ftp.*; public class FTPExample { public static void main(String[] args) { FTPClient client = new FTPClient(); try { client.connect("ftp.example.com"); client.login("username", "password"); client.upload(new java.io.File("localfile.txt"), "/remotefolder/remotefile.txt"); client.disconnect(); } catch (FTPException ex) { } } }


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