You're only reading in one line with this command. Try using a loop to keep reading lines in until you can't anymore.