• Post Reply Bookmark Topic Watch Topic
  • New Topic

Weird problem when reading file  RSS feed

 
Kari Nordmann
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to read a file and I get a bug that I've never experienced before.

The read method:

The file content:

The result:


I've tried several ways of reading the file, different readers, different reading loops, and I always get the same, weird bug. I also tried reading from a different file, the result was just the same.

Can anyone explain why it doesnt work?
 
Kari Nordmann
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nevermind, the problem turned out to be in the method calling the read method
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!