This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes how do I read using a BufferReader (or else) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how do I read using a BufferReader (or else)" Watch "how do I read using a BufferReader (or else)" New topic
Author

how do I read using a BufferReader (or else)

Allen Chan
Ranch Hand

Joined: Jun 07, 2002
Posts: 64
Hi all,
I want to read a file remotely, I am using FileInputStream to open, BufferReader to read, PrintWriter to write the file locally, but BufferReader.readLine() will lose \n or \r,
So HOw do I do this read and write (essentially ftp) in JAVA? Or you could tell me any other language choice.
Thanks.
Paul Zill
Greenhorn

Joined: Jun 12, 2003
Posts: 28
by remotely what do you mean?
is the only way to access the file via FTP?
 
 
subject: how do I read using a BufferReader (or else)