Hi everyone,
Currently i am trying to connect to a site using ftp using the below method to upload a file
Now my question is how from java can i create or delete a directory as well as create or delete a file using ftp?Code:URL url = new URL("ftp://user01:pass1234@ftp.foo.com/README.txt;type=i"); URLConnection urlc = url.openConnection(); OutputStream os = urlc.getOutputStream(); // To upload
Is there also a way i can just connect to a ftp site say ftp.foo.com without specifying the file name so that i can connect to the ftp site first, create a file first then go to that file?
Any help is greatly appreciated
Thank You
Yours Sincerely
Richard West


Reply With Quote


Bookmarks