You are reading from your file twice at each iteration, but you are only storing half of the lines in data.
Joined: Jun 01, 2010
I surmise that it is only printing the even numbered lines in your file. That is because your while statement is reading a line and then you read another line in the while loop. And you only print the line that was read in the loop. Try: