This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript 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!
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!