• Post Reply Bookmark Topic Watch Topic
  • New Topic

Reading lines in nio  RSS feed

 
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

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!