Hi
I have been trying to make a FTP client using exec(...) method of java.lang.Runtime. I coded the client like this:
Process p = (Runtime.getRuntime()).exec("ftp
www.somesitename.com"); After this I obtain the InputStream and OutputSream associated with the process. Now the problem arise:
(1). When I wrap the InputStream into BufferedReader then a call to readLine() method of BufferedReader results in no output
(2). How one can pass the user name and password to this ftp connection using the output stream of the process
Can someone help me find out a simple solution to creating FTP client using just the exec(...) method rather than using Sockets and ServerSockets.
regards
ashish sarin