File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes I/O and Streams and the fly likes Reading lines in nio Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Reading lines in nio" Watch "Reading lines in nio" New topic
Author

Reading lines in nio

Prakash Dwivedi
Ranch Hand

Joined: Sep 28, 2002
Posts: 452
Hello Friends,
I am trying to develop a Java Program using java.nio., this programs simply reads a text file and prints one line at a time on the screen as well as on another file, a.txt. My problem is i am getting empty spaces being printed on screen and some unreadable characters written on a.txt.

Plz help



Prakash Dwivedi (SCJP2, SCWCD, SCBCD)
"Failure is not when you fall down, Its only when you don't get up again"
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Reading lines in nio