Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DataInputStream

 
Nelson Nadal
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since the readLine() of DataInputStream is deprecated, what is my alternative to read the writeChars() of DataOutputStream? (aside from using BufferedReader)?
 
Thomas Paul
mister krabs
Ranch Hand
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And why don't you want to use BufferedReader?
 
Nelson Nadal
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have this part of code...

this runs with -deprecated sign...
Now it when I use BufferedReader it returns garbage chars...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic