View Single Post
09-22-2012, 06:17 AM
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Thanked 2,452 Times in 2,421 Posts
That will do it. Since buffers don't have hasNext or similar token checks, you simply pull the assignment during the check. Like you said with pulling a readLine twice, it effectively skips every other line (which you can see here).
View Public Profile
Find More Posts by Fou-Lu