• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reading lines in nio

 
Prakash Dwivedi
Ranch Hand
Posts: 452
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic