wood burning stoves 2.0*
The moose likes Java in General and the fly likes bufferedReader.readLine() random order of lines ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "bufferedReader.readLine() random order of lines ?" Watch "bufferedReader.readLine() random order of lines ?" New topic
Author

bufferedReader.readLine() random order of lines ?

Miran Cvenkel
Ranch Hand

Joined: Nov 23, 2010
Posts: 147
Why this is reading lines of text in completely randome order, not from top to bottom ?



Searchable nature photo gallery: http://agrozoo.net/jsp/Galery.jsp?l2=en
Miran Cvenkel
Ranch Hand

Joined: Nov 23, 2010
Posts: 147
ahh, forget that, my mistake.
James Sabre
Ranch Hand

Joined: Sep 07, 2004
Posts: 781

You are mistaken. Since you are reading from a Reader which is just a stream of chars it must read from 'top to bottom'.


Retired horse trader.
 Note: double-underline links may be advertisements automatically added by this site and are probably not endorsed by me.
Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2264
    
    3

Howdy, Miran!

Can you show us your solution, champ? This can be helpful to other people that run into the same mistake as you in the future.


Cheers, Bob "John Lennon" Perillo
SCJP, SCWCD, SCJD, SCBCD - Daileon: A Tool for Enabling Domain Annotations
Miran Cvenkel
Ranch Hand

Joined: Nov 23, 2010
Posts: 147
I just had one extra



before while so it started reading at second line.
Showing that in some text boxes further confused things.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: bufferedReader.readLine() random order of lines ?