Look closely at your original while code - every call to readLine moves the pointer in the file forward to the next line
while ( myBuffer.readLine() != null ){///reads line and moves the pointer...
Type: Posts; User: copeg
Look closely at your original while code - every call to readLine moves the pointer in the file forward to the next line
while ( myBuffer.readLine() != null ){///reads line and moves the pointer...
Based on the assumption myBuff is a Reader (aka BufferedReader), every time you call readLine it reads the line and moves the pointer to the next, and as is the while loop skips over every other line...