Actually I'm now have the basic skill in FTP only, and now I'm facing the problem of getting .log
file from a remote site. I can access into it, and check for the file exist, but don't know how to retrieve it.
Can I use apache FileUtils
to set source
and destination
? If can, can I set the destination to another remote site? (like put ip address)
Or can I use File input
and output
stream? and the same, can i apply ip address in the outputstream?
or any others suggestion for me? thanks for your answer.
Java FTP libraries you can use: JavaWorld FTP libs article