Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to read a file of any format from the java code?  RSS feed

 
Venu gopalReddy
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I wnat to read a file (any format) from the FTP with java code, so if any one knows about this please help me in this if possible please provide some java code also.


Thanks in Advance.........
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
FTP is one of the many protocols supported by the Apache Commons Net toolkit.

Bill
 
T.A. Nguyen
Ranch Hand
Posts: 36
Eclipse IDE Java ME Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or you can use the FtpClient (primitive codes..., Arr! not sure why Sun never have FTP package as part of the JDK???).

http://www.java-forums.org/java-net/7254-ftp-client-demonstration.html

enjoy!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!